Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET HTML
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 21-Nov-12 0:22am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
Create property of panel and expose them.
 
Or find the control with this.Master.
Label lbl = (Label)this.Master.FindControl("cartnum");
lbl.Text = "message";
  Permalink  
v3
Comments
sreerajsn123 at 21-Nov-12 7:01am
   
thanks a lot
Mohd. Mukhtar at 21-Nov-12 7:05am
   
:-)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Write this code on content page;
Label l = (Label)Master.FindControl("cartnum") as Label;
                l.Text = "123";
  Permalink  
Comments
sreerajsn123 at 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)

  Print Answers RSS
0 OriginalGriff 478
1 Sergey Alexandrovich Kryukov 305
2 PhilLenoir 115
3 RajeeshMenoth 110
4 Uma Shankar Patel 80
0 Sergey Alexandrovich Kryukov 6,557
1 OriginalGriff 5,966
2 CPallini 2,473
3 Richard MacCutchan 1,687
4 Abhinav S 1,540


Advertise | Privacy | Mobile
Web01 | 2.8.140821.2 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100