Thursday, April 1, 2010

How to call a method asp.net page?

If you are looking to enhance your web application using AJAX to provide a more fluid user experience, but you don't know where to start, you might want to start here... using code-behind page methods right in your client script.

One of the most powerful features of ASP.NET AJAX is its ability to tie back-end code to the users' browser in the form of JavaScript with the communication all behind the scenes. Although ASP.NET AJAX can interface with web services so well, you may not have the need or even want to create a web service to do some basic functionality; you may just want to use a method in your page class.

This article is going to discuss a 'real world' scenario where you might use ASP.NET AJAX to call methods on your page. The scenario is that of a "contact us" page. Most contact us pages follow a similar format: 1) display a form for the user to fill out, 2) validate that form against whatever requirements you might have and 3) display a "thank you" message to the user letting them know that you have received the message.

see the rest of the article... click here

No comments:

Post a Comment