Using UpdatePanel control we can refresh only required part of the page instead of whole page.
UpdatePanel Control
You can refresh the selected part of the web page by using UpdatePanel control, Ajax updatepanel control contains a two child tags that is ContentTemplate and Triggers. In a ContentTemplate tag we used to place the user controls and the Trigger tag allows you to define certain triggers which will make the panel update its content.
Add this code in file .aspx :
<asp:UpdatePanel ID=“updatepnl” runat=“server”>
<ContentTemplate>
</ContentTemplate>
</asp:UpdatePanel>
All the contents that must be updated asynchronously (only contenttemplate parts are updated and rest of the web page part is untouched) are placed here. It allows us to send request Or post data to server without submitting the whole page so that is called asynchronous.
Speak Your Mind