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>);