Duration: 19 minutes
Summary: In this video, we are going to talk about user controls with AJAX (Asynchronous JavaScript and XML). AJAX enables us to update contents of the page without doing a postback. We will cover a lot about AJAX in the rest of this course. But here, we will take a small example and see how we can use AJAX in the user control. When the page loads, we will read the current time. But then, we will add a timer that triggers an update to the page every second. The content will have a label with the current date. Every time the update happens, the label will display the latest date. That way, we can have a running clock on the page. In the second part, we will see how we can load controls dynamically. We will use the LoadControl method of the Page to load the control and add it to a place holder..
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, Control, LoadControl, AJAX, ScriptManager, Timer, UpdatePanel, Triggers, ContentTemplate.