.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to access the control in the master page from a child page?

Posted By: Deco     Posted Date: October 31, 2010    Points:2   Category :C#
Please help me on how to access the control from child page...

Responses
Author: Asha.MP             
Posted Date: November 02, 2010     Points: 5   

Hi..

Considar LblLoginName this is the label defined in the master page, page Abc is the child of the Master page.
If You want to change the text of the label of the master page by the child, you can use this

Dim lableName As Label = CType(Me.Master.FindControl("LblLoginName"), Label)
lab.Text = "DotNetSpark"

I think this may help you.

Thanks and Regards,
Asha.mp


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend