my friend mentioned to me that since i was only using update panels on my asp.net site, i really wasn’t really using direct AJAX functionality. what is he talking about?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Strict AJAX means using asynchronous Javascript (using the JS XmlHttpRequest object) and XML (or JSON). That means making a very lightweight call back to your server or other service, taking the results, and processing them in some way on the client. Both sides (the request and response handling) require writing Javascript.
ASP.NET UpdatePanels do this, but ‘hide’ all the details from you. That is, their data transfer payload ‘looks’ like a standard form POST, and the data returned is really a block of HTML that is literally inserted/replaced into the current page.
This makes calls ‘heavier’ on the server (since the entire Page lifecycle must be completed) and on bandwidth usage. Newer technologies such as ASP.NET MVC do not require/use UpdatePanels and can use lightweight JSON services to return data, but you must write the Javascript to ‘deal with it’ on the client end (bind it into the UI somehow).