Monday, June 11, 2007

Using AJAX in ASP.NET technology through Atlas.


AJAX (Asynchronous JavaScript and XML) is a cross platform technology publish. This technology allows developers to perform asynchronous requests to the Web, using the markup language of XML.
Technology firms Microsoft code-named "Atlas" enables the use AJAX to create server applications based on ASP.NET 2.0 technology.
This article focuses on a simple Web-based applications to dynamically on the client side complete data pull-down list and make dynamic loading additional information from the database using ASP.NET 2.0, AJAX and Atlas.
To begin with the Atlas technology to download an extension to Visual Studio 2005. You can do this with the Microsoft site (download).
With this expansion should create a new Web project using the template "ASP.NET 'Atlas' Web Site" (Fig. 1)


Fig. one window for a new project based on the template



Fig. 2 Sozdavaemaya table sprEmployee

After setting up a database and fill it Which of you are ready to create web necessary to extract information from the database in XML format.
To create a web in the window, select "Solution" Exploler up project, and then to me Website select Add New Item. In the dialog box (Figure 3) choose a template Web Service, a name WebAccess.asmx and remove tick Place code in separate file.


Fig. 3 window of a new web

Now add code to our web : Code Listing 1 Source Code Web

Now proceed to a web page to access information on the accounts. To that end, providing the box "Solution" Exploler up in the draft and selecting a menu item Website Add New Item, ask relevant parameters created a page (Figure 4). :
Template-Web Form.
Name-AtlasDropDown.aspx.
Similarly Place code in separate file-removed.


Fig. 4 Create a new web page

After creating a web introduce a code necessary for the work. Code Listing 2 source code web

Now start up project implementation. If all goes well, you should show that the browser window (Figure 5), and after downloading the list and select a record you will about this type as in Fig.

No comments: