Showing posts with label AJAX1. Show all posts
Showing posts with label AJAX1. Show all posts

Wednesday, 7 August 2013

AJAX

Creating an ASP.NET AJAX-Enabled Web Site

Adding an UpdatePanel Control to an ASP.NET Web Page
You can create ASP.NET AJAX-enabled Web sites in Visual Studio by using the template installed with ASP.NET AJAX.
   1.    Start Visual Studio.
   2.    In the File menu, click New Web Site.
   The New Web Site dialog box is displayed.
   3.    Under Visual Studio installed templates, select ASP.NET AJAX-Enabled Web Site.
   4.    Enter a location and a language, and then click OK.

   After you create an AJAX-enabled Web site, you create an ASP.NET Web page that includes an UpdatePanel control. 
   Before you add an UpdatePanel control to the page, you must add a ScriptManager control. 
   The UpdatePanel control relies on the ScriptManager control to manage partial-page updates.
   1. In Solution Explorer, right-click the name of the site and then click Add New Item.
The Add New Item dialog box is displayed.
2. Under Visual Studio installed templates, select Web Form.
3. Name the new page Employees.aspx and clear the Place code in separate file check box.
4. Select the language you want to use.
5. Click Add.
6. Switch to Design view.
7. In the AJAX Extensions tab of the toolbox, double-click the ScriptManager control to add it to the page.
8. Drag an UpdatePanel control from the toolbox and drop it underneath   the ScriptManager control.