Articles → ASP .NET AJAX → Updatepanel Control In Asp.Net Ajax

Updatepanel Control In Asp.Net Ajax






Purpose





Example


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html>
<html
	xmlns="http://www.w3.org/1999/xhtml">
	<head runat="server">
		<title></title>
	</head>
	<body>
		<form id="form1" runat="server">
			<asp:ScriptManager ID="ScriptManager"
            runat="server" />
			<asp:UpdatePanel ID="UpdatePanel1"
            UpdateMode="Conditional"
            runat="server">
				<ContentTemplate>
					<fieldset>
						<legend>UpdatePanel content</legend>
						<!-- Other content in the panel. --><%=DateTime.Now.ToString() %>
						<br />
						<asp:Button ID="Button1"
                        Text="Refresh Panel"
                        runat="server" />
					</fieldset>
				</ContentTemplate>
			</asp:UpdatePanel>

        Outside updatepanel: <%=DateTime.Now.ToString() %>
		</form>
	</body>
</html>







Output


Picture showing the output of UpdatePanel control in asp.net ajax
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, August 30, 2018

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250