Click here to Skip to main content
12,758,300 members (34,778 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET MVC3
<script language="javascript" type="text/javascript">
      function Remove(rowid, id) {
          if (confirm('Are you sure you want to do this action?')) {
              $.post("/Store/Delete", { id: id });
              $('#' + rowid).remove();
Posted 22-Jan-13 1:29am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please use below Code
                    url: '/Store/Delete/' + id,
                    type: 'DELETE',
                    data: {},
                    dataType: 'json',
                    success: function () {
                    error: function (e) {

public ActionResult Delete(int id)
           return View();


Hope this helps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100