SIMPLE USER CONTROL PROBLEM

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top