T
tdavisjr
Ok.. Here it goes.
I have a MasterPage that includes a UserControl (HeaderControl.ascx)
that has the ID of Header1 in the markup in the Master Page. Now, the
Head1 usercontrol has a property called Title.
Then, I have a Test.aspx page that uses the Masterpage and I want to be
able to acces the Title Property of the Header1 user control that is in
the MasterPage.
Here is what I am doing in the Page_Init in the Test.aspx:
Dim pageHeader As HeaderControl =
CType(Me.Master.FindControl("Header1"), HeaderControl)
pageHeader.Title = "Error"
This doesn't do anything. The title doesn't show up. Anyone have any
suggestions?
I have a MasterPage that includes a UserControl (HeaderControl.ascx)
that has the ID of Header1 in the markup in the Master Page. Now, the
Head1 usercontrol has a property called Title.
Then, I have a Test.aspx page that uses the Masterpage and I want to be
able to acces the Title Property of the Header1 user control that is in
the MasterPage.
Here is what I am doing in the Page_Init in the Test.aspx:
Dim pageHeader As HeaderControl =
CType(Me.Master.FindControl("Header1"), HeaderControl)
pageHeader.Title = "Error"
This doesn't do anything. The title doesn't show up. Anyone have any
suggestions?