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;
Friday, May 14, 2010
To Reference ASP.NET Master Page Content, Content Pages
Labels:
Master Page
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment