Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 24, 2012 02:32 AM by Chen Yu - MSFT
Member
16 Points
78 Posts
Oct 04, 2012 01:27 PM|LINK
If so please tell me how.
Thanks.
Contributor
2396 Points
661 Posts
Oct 04, 2012 01:32 PM|LINK
((Label)Page.Master.FindControl("LabelName")).Text="Your Text";
All-Star
95463 Points
14106 Posts
Oct 04, 2012 01:53 PM|LINK
do you want to change text of label control in content page from master page?
Then,...http://stackoverflow.com/questions/4979669/how-to-access-content-page-controls-from-master-page-in-asp-net
That should help you..
thanks,
42975 Points
7025 Posts
MVP
Oct 07, 2012 12:50 PM|LINK
Hello,
Well. Yes, really.
In your aspx
<asp:Label ID="Label1" runat="server" Text="Whatever text you need"></asp:Label>
In code behind (C#)
Label1.Text = "Whatever text you need";
Is that what you asked?
Please 'Mark as Answer' if this post helps you.
Oct 07, 2012 08:44 PM|LINK
Ruchira I tried this and it did not work am I missing a reference or something?
21584 Points
2493 Posts
Microsoft
Oct 24, 2012 02:32 AM|LINK
mr41971 Ruchira I tried this and it did not work am I missing a reference or something?
Hi,
Would you please post your code ? It will provide us more information about your problem.
mr41971
Member
16 Points
78 Posts
Is it possible to change the text of a Label between asp:content tags?
Oct 04, 2012 01:27 PM|LINK
If so please tell me how.
Thanks.
tdmca
Contributor
2396 Points
661 Posts
Re: Is it possible to change the text of a Label between asp:content tags?
Oct 04, 2012 01:32 PM|LINK
((Label)Page.Master.FindControl("LabelName")).Text="Your Text";
ramiramilu
All-Star
95463 Points
14106 Posts
Re: Is it possible to change the text of a Label between asp:content tags?
Oct 04, 2012 01:53 PM|LINK
do you want to change text of label control in content page from master page?
Then,...http://stackoverflow.com/questions/4979669/how-to-access-content-page-controls-from-master-page-in-asp-net
That should help you..
thanks,
JumpStart
Ruchira
All-Star
42975 Points
7025 Posts
MVP
Re: Is it possible to change the text of a Label between asp:content tags?
Oct 07, 2012 12:50 PM|LINK
Hello,
Well. Yes, really.
In your aspx
In code behind (C#)
Is that what you asked?
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.mr41971
Member
16 Points
78 Posts
Re: Is it possible to change the text of a Label between asp:content tags?
Oct 07, 2012 08:44 PM|LINK
Ruchira I tried this and it did not work am I missing a reference or something?
Chen Yu - MS...
All-Star
21584 Points
2493 Posts
Microsoft
Re: Is it possible to change the text of a Label between asp:content tags?
Oct 24, 2012 02:32 AM|LINK
Hi,
Would you please post your code ? It will provide us more information about your problem.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store