passing a parameter with the OnSuccess event in a Ajax.ActionLink or Ajax.BeginForm is bit tricky...
< script type="text/javascript">
function ExeOnComplete(strParam1)
{
alert('strParam1');
}
< /script>"
using (Ajax.BeginForm("Create", "Profile", new AjaxOptions { HttpMethod = "Post", OnComplete = "function(){ExeOnComplete('abc');}"}))
{
// your code here
}
this approach doesn't work for me. it generates a runtime error "Expected identifier" in the unobtrusive ajax library
ReplyDeleteThis doesn't work with unobtrusive javascript. Have you figured out how to do this with unobtrusive javascript? Any help would be appreciated.
ReplyDeleteThanks