What happend to the Client ScriptCallback feature of Asp.Net 2.0, Well nothing really happened to Asp.Net 2.0’s client call back…its there and MS Ajax.net (aka atlas) actually uses this in the back end. The reason why we don’t here about it is…it is a paint in the you know what! To actually get anything done….but there was less of a foot print on the page.
Right now we have a couple API’s for writing Ajax is asp.net:
- MS Ajax.Net (aka Atlas)
- Ajax.Net or Professional Ajax.Net
Tips when not to Use Ajax… because the list of when to use it is actually longer…
- If a callback is going to Redirect a user when it get back to the client, just do a post and redirect him or her from there because it gets annoying. If it has to go all the way to server just do a post and redirect or do a Server.transfer.
- Don’t do a call back if it take 30 sec to return, but if you must give the user a message so he or she knows your processing data.