K
Kan Grewal
Let me explain the subject!...
I have a very simple web user control (webcontrol2) that consists of a
textbox and a command button.
I then have a second web user control (webcontrol1) that has no controls
placed on it, but has the following code in the page_load event:
Dim x As New WebUserControl2
Me.Controls.Add(x)
I then have a webform that has webcontrol1 placed on it.
When I run the project I get nothing! No errors, no controls, nothing.
However, if in wecontrol1, I replace the code with
Dim x As New TextBox
Me.Controls.Add(x)
It works....what's going on - can someone explain, as I'm at a loss.
Thanks in advance,
Kan
I have a very simple web user control (webcontrol2) that consists of a
textbox and a command button.
I then have a second web user control (webcontrol1) that has no controls
placed on it, but has the following code in the page_load event:
Dim x As New WebUserControl2
Me.Controls.Add(x)
I then have a webform that has webcontrol1 placed on it.
When I run the project I get nothing! No errors, no controls, nothing.
However, if in wecontrol1, I replace the code with
Dim x As New TextBox
Me.Controls.Add(x)
It works....what's going on - can someone explain, as I'm at a loss.
Thanks in advance,
Kan