I\'m using the Ajax.ActionLink helper to generate a link to delete a record. This is the code:
Ajax.ActionLink(\"Delete Image\", \"DeleteImage\", new { id =
To pass a parameter, an anonymous function won't work, you need to do something like this:
OnSuccess = String.Format("Test({0})", param)
If you have to pass any parameter to the OnSuccess event you may have to write the funcion in this way.
OnSuccess = "function(){exampleFunction('" + param1 + "');}"
OnSuccess = "Test()"
you have to write it like this it is a callback...
OnSuccess = "Test"