Introduction
Ajax (Asynchronous JavaScript and XML) is a new web development technique for interactive websites. With the help of AJAX, we can develop web applications and retrieve small amounts of data from a web server. AJAX consists of a different type of technology.
- JavaScript
- XML
- Asynchronous Call to the server
UpdateProgress
The UpdateProgress control provides status information about partial-page updates in UpdatePanel controls. You can customize the default content and the layout of the UpdateProgress control. To prevent flashing when a partial-page update is very fast, you can specify a delay before the UpdateProgress control is displayed.
Step 1. Open Visual Studio 2010.
- Go to File->New->WebSite
- Select ASP.NET Empty WebSite
Step 2. Go to Solution Explorer and right-click.
- Select Add->New Item
- Select WebForm
- Default.aspx page open
Step 3. Go to Default.aspx page click on the [Design] option and drag the control from Toolbox.
- Drag Panel, ScriptManager, TextBox, Label, UpdatePanel, RequireFieldValidator
Step 4. Now we define ContentTemplate for the UpdatePanel.
ContentTemplate
Code
Step 5. Now go to the Default.aspx[design] page and drag an UpdateProgress control from the Toolbox.
![Update Progress]()
Step 6. Now the following code is given below.
Code
Step 7. Now click on the button control and write some code.
Code
Step 8. Go to the default.aspx.cs option and write some code.
Code
Step 9. Now the complete code is in Default.aspx[source] page is.
Code
Step 10. Now run the application by Pressing F5.
![Run application]()
Step 11. When we click on the Add Record button then the following message is shown.
![Record button]()
Step 12. Now we define all required fields and click on the add record button.
![Required fields]()
Resources