T
Torben Laursen
I want to change the label of a component that I have on a masterpage but I
cannot get my hands on it
I have a mastepage MP2 that has a button called B2
masterpage MP2 uses masterpage MP1 that has a button called B1
I then have a page called default and in the page load I tryed:
System.Web.UI.WebControls.Button B10 =
(System.Web.UI.WebControls.Button)Master.FindControl("B1");
System.Web.UI.WebControls.Button B20 =
(System.Web.UI.WebControls.Button)Master.FindControl("B2");
However both B10 and B20 is null.
So how do I get my hands on B1 and B2 so I can set there label?
Thanks Torben
cannot get my hands on it
I have a mastepage MP2 that has a button called B2
masterpage MP2 uses masterpage MP1 that has a button called B1
I then have a page called default and in the page load I tryed:
System.Web.UI.WebControls.Button B10 =
(System.Web.UI.WebControls.Button)Master.FindControl("B1");
System.Web.UI.WebControls.Button B20 =
(System.Web.UI.WebControls.Button)Master.FindControl("B2");
However both B10 and B20 is null.
So how do I get my hands on B1 and B2 so I can set there label?
Thanks Torben