To Access Content Page TextBox Value in MasterPage:
TextBox txtB = (TextBox)ContentPlaceHolder1.FindControl("txtContentPg");
txtMaster.Text = "Content Page TextBox Value: " + txtB.Text;
To Access Master Page Label Value in ContentPage:
Label l1 = (Label)Master.FindControl("lblMaster");
lblContentPg.Text = "Master Page Label = "+l1.Text;
Showing posts with label Master Page. Show all posts
Showing posts with label Master Page. Show all posts
Friday, May 14, 2010
To Reference ASP.NET Master Page Content, Content Pages
Labels:
Master Page
Subscribe to:
Comments (Atom)