How is OnSuccess measured for a ASP.NET MVC ActionLink? -


I do not understand how ASPNET functional links work I see that they have onsoot and on file There is an event handler, but I can not find anything that tells how success and failure are determined.

I am creating an ASP.NET MVC application and it has an Ajax.ActionLink within that allows me to "vote" on items using AJAX ... corresponding to Digg Like the Actionlink kicks off my controller and method ... everything is working fine here.

In my controller I argue that it checks to see if this user has voted first. I want to use "onsoot" and "onfiller" in different ways. If the user has never voted (this is an on-going scenario) and if the user has been voted before running my javascript function, then I want to run it in my Javascript function "PlusOnbuT". "

Can anyone explain how failure and auspiciousness are measured?

Can anyone explain how I can make this argument ... where I am at a branch Can I run a JavaScript function (in my case, if the user has never voted) and the user has already voted in another Javascript function?

The success of the AJAX response to the HTTP status code If you get 400 level codes (400 - 417), then you will get a failure. If you get 200, then it will be considered success.

I think you need to check the contents of the data in your onsite handler to determine what you have to do instead of considering a type of failure message. A type of success message from AJAX perspective, And I went back a valid response if it is successful.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -