Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6841779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:00:32+00:00 2026-05-27T00:00:32+00:00

I have a modal window (in a view rendered from public ActionResult ViewItems )

  • 0

I have a modal window (in a view rendered from “public ActionResult ViewItems“) that when clicked; submits an empty form to an actionresult called [HttpPost]public ActionResult DeleteItems.

It then deletes all the items displayed.
I dont need to post any data, as it just deletes all, but at the same time i dont want to have this on a HttpGet method.

So, can i remove the form and still get jquery to trigger this ActionResult?

I could do it with ajax but would rather not.

Thanks,

Kohan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:00:33+00:00Added an answer on May 27, 2026 at 12:00 am

    Its either ajax or a form. That it – your only options as per the http spec. You need a form for your post if not using ajax.

    Why not take the pattern used in the MVC samples for a delete? You get a confirmation and then another post. Your post should be from a form, and that form should also have an antiforgerytoken in it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a modal window from which I am calling a lighbox to view
on my web site I want to have login/registration form in modal window done
I have a JInternalFrame window that needs to popup a modal dialog box when
Modern browsers have multi-tab interface, but JavaScript function window.showModalDialog() creates a modal dialog that
From other threads here I have gotten a modal view login screen to show
I have a concept of a modal window in my MVC application that renders
I have created a split view application that begins with a modal view splash
I have a viewController that pops a modal view with a UIWebView. If I
I have a page where I open a modal window. It is really just
I have 4 buttons on a page. Each button opens a modal window and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.