G
Guest
I have a simple USer control Page and web form .
I added a label into my ascx file wich has "Label" text as default.
When i try to change its value in my ascx file's page_load event
Label1.Text ="Value";
It still shows Label as its text.
In my ascx file
<asp:Label id="Label1" runat="server">Label</asp:Label>
I call my user control in main page's page_load event
Skin.UserCartHistory pch1=(Skin.UserCartHistory) Page.LoadControl
("Skin/UserCartHistory.ascx");
this.AddControl (pch1,"_uch",true);
this.SetActive(e.Query);
What can be the problem ?
I added a label into my ascx file wich has "Label" text as default.
When i try to change its value in my ascx file's page_load event
Label1.Text ="Value";
It still shows Label as its text.
In my ascx file
<asp:Label id="Label1" runat="server">Label</asp:Label>
I call my user control in main page's page_load event
Skin.UserCartHistory pch1=(Skin.UserCartHistory) Page.LoadControl
("Skin/UserCartHistory.ascx");
this.AddControl (pch1,"_uch",true);
this.SetActive(e.Query);
What can be the problem ?