Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax button call inside a MVC grid

$
0
0

In a MVC grid i have an edit button to edit the details.But when i am clicking on the button im unable to call the method.

<script>
    function updatecall(id) {
        alert(id);$.ajax({
            url: '@Url.Action("edit", "PhoneBook")',
            cache: false,
            data: {
                'id': id
            },
            success: function (result) { },
            error: function (result) { }
        })
    }</script><b><a href=@Url.Action("edit", "PhoneBook", new { id = d.MObileNUmber }) title="Edit" >Edit</a><a href="#Delete" id="Delete_pop" onclick="Delete(@d.MObileNUmber)">Delete</a></b>);


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>