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
}
Subscribe to:
Post Comments (Atom)
5 Strategies for Getting More Work Done in Less Time
Summary. You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...
-
Imagine going to work everyday and facing a colleague who does not respect you or having to work with someone who was constantly underminin...
-
Sometimes just to get a quick success build you might need to disable/ignore/skip some of the munit test cases. you can do you by double ...
-
Install ActiveMQ Step 1: Download Apache Active MQ 5.x.x (5.15.8 Latest Version Up to Feb 2019) Step 2: Install ActiveMQ Run the Active...
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