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 =
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 + "');}"