Home Call Ajax.beginForm's onSuccess function from another script file
 so i'm still a beginner and I'd like to understand something. My page had the following: @using (Ajax.BeginForm("ManageHistory", "History", new AjaxOptions() { HttpMethod = "POST", OnSuccess = "onSuccess" @*, InsertionMode = InsertionMode.Replace, UpdateTargetId = "historyContainer"*@ })) {  I had a lot of js functions as well, but I decided to put them all away in a script file. All of them are working just fine except the onSuccess function thar I couldn't figure out how to call it from the cshtml file. I'd like to how, Thank you.