Home
ASP:UpdatePanel AbsoluteBasic Example
The quasi HTML page
<form id="form1" runat="server">
<!--
We absolutely have to have this scriptmanager. It's how ASP.Net gets the required Javascript into the page.
-->
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="myPanel" runat="server">
<ContentTemplate>
<asp:TextBox ID="myText" runat="server" />
<br />
====
<asp:Literal ID="myLit" runat="server" />
<br />
<asp:Button ID="DoTest" OnClick="DoTest_Click" Text="Go" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
The Code Behind
protected void Page_Load(object sender, EventArgs e)
{
}
protected void DoTest_Click(object sender, EventArgs e)
{
myLit.Text = myText.Text;
}
Reader's Comments
Name
Comment
Add a RELEVANT link (not required)
Upload an image (not required)
Uploading...
Home