VB.NET
Hello I am new to C # and I need to spend in the following function ( PostFilure ) in js a string variable from C # . The problem is that the function returns some object and I don't understand where comes from. Currently my code is;Java
Index.cshtml;@using (Ajax.BeginForm("Login", "Account", new AjaxOptions { HttpMethod = "post", OnBegin = "PostOnBegin", OnFailure = "PostFailure", OnSuccess = "PostSuccess", OnComplete = "PostOnComplete" })){...anylib.jsfunction PostFailure (message){}Code
Java
the idea would be:Index.cshtml;@using (Ajax.BeginForm("Login", "Account", new AjaxOptions { HttpMethod = "post", OnBegin = "PostOnBegin", OnFailure = "PostFailure(messaje,'hola')", OnSuccess = "PostSuccess", OnComplete = "PostOnComplete" }))anylib.jsfunction PostFailure (message,x){
}
Saineshwar BageriRank #115 · 19.6K reputationPosted Feb 2, 2016, 7:31 PM EST
Sujeet SumanRank #790 · 2.9K reputationPosted Feb 2, 2016, 9:00 PM EST