Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends

i have a update panel in master page

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="cartnum" runat="server">0</asp:Label> Items
</ContentTemplate>

</asp:UpdatePanel>

i have to control this update panel from content page
how to do?
please help me
Posted

Hi,

Create property of panel and expose them.

Or find the control with this.Master.
C#
Label lbl = (Label)this.Master.FindControl("cartnum");
lbl.Text = "message";
 
Share this answer
 
v3
Comments
sreeCoderMan 21-Nov-12 7:01am    
thanks a lot
Mohd. Mukhtar 21-Nov-12 7:05am    
:-)
Write this code on content page;
C#
Label l = (Label)Master.FindControl("cartnum") as Label;
                l.Text = "123";
 
Share this answer
 
Comments
sreeCoderMan 21-Nov-12 6:54am    
after doing this code there is time difference that is some postback missing

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900