If you wonder how many parameters you can use in AjaxOptions you can visit the MSDN Help Page. The option we're interested in in this post is OnSuccess. Take a look at this code:
Imagine this is the HTML page in which we want to place this partial view:
Now each time the form is loaded via Ajax, or in a post, the alert will popup.