C
Calvin Lai
Hi all,
I have a problem in creating web user control *programatically*. Problem as
follows:
1. WebUserControl1 contains a server side table named Table1
2. WebForm1 contain a server panel and server form.
3. In WebForm1.aspx.cs, I created a WebUserControl1 and attached it to panel
by:
WebUserControl1 oCtl = new WebUserControl1();
panel.Controls.Add(oCtl);
4. I have put a message in WebUserControl1:age_Load() to display the
validity (null or not null) of the server side table Table1
5. When I load the WebForm1, the Page_Load of WebUSerControl1 was loaded
twice (first problem), and both of them shows that the Table1 is null!
(problem 2)
Any one pls help...I am hopeless here. Thanks.
Calvin
I have a problem in creating web user control *programatically*. Problem as
follows:
1. WebUserControl1 contains a server side table named Table1
2. WebForm1 contain a server panel and server form.
3. In WebForm1.aspx.cs, I created a WebUserControl1 and attached it to panel
by:
WebUserControl1 oCtl = new WebUserControl1();
panel.Controls.Add(oCtl);
4. I have put a message in WebUserControl1:age_Load() to display the
validity (null or not null) of the server side table Table1
5. When I load the WebForm1, the Page_Load of WebUSerControl1 was loaded
twice (first problem), and both of them shows that the Table1 is null!
(problem 2)
Any one pls help...I am hopeless here. Thanks.
Calvin