How can I pass parameters to the OnSuccess function of the AjaxOptions class in ASP.NET MVC?
Posted
by Bryan Roth
on Stack Overflow
See other posts from Stack Overflow
or by Bryan Roth
Published on 2010-04-09T14:39:27Z
Indexed on
2010/04/09
14:43 UTC
Read the original article
Hit count: 526
asp.net-mvc
|asp.net-ajax
How can I pass parameters to the OnSuccess
function of the AjaxOptions
class in ASP.NET MVC?
Here's my code but it doesn't work:
<%= Ajax.ActionLink("Delete",
"Delete",
"MyController",
New With {.id = record.ID},
New AjaxOptions With
{
.Confirm = "Delete record?",
.HttpMethod = "Delete",
.OnSuccess = "updateCount('parameter')"
})
%>
© Stack Overflow or respective owner