Wednesday, March 21, 2012

partial page update

hi, just learning the ajax for asp.net and would like to know how can i update the content by putting another control inside the update panel.

for example, inside this control panel, there is a label, when i click on the button, the label will disappear and then the login control will be visible? sorry, just a newb in asp.net and ajax. thanks in advance.Smile

Hi,

Just place them inside the UpdatePanel and code your controls as what you do using postback.

Does that make sense?


<asp:UpdatePanel ID="UpdatePanel 1" UpdateMode="Conditional" runat="server">
<ContentTemplate>

<!-- Your control Lable,Button etc -->

</ContentTemplate>
</asp:UpdatePanel>

No comments:

Post a Comment