G
Guest
Dear all,
I try to study Web user control .For that I have created a simple text box
with button as a webuser control which has 2 properties.
Then I drop my user control on a web page for testing.
I have read that If we need to retrive Webuser control properties from the
web page, we need to place the code in the PAge_Prerender event of the form
which contains it.
So what I have do is that I place that webuser control on a web page called
WebPage1.aspx then on the pre_render event of that page I have place
following code :
dim sText as string
sText= myUserCtrl.getValue
Doing that return an error when executin about object not initiliaze. Then
when setting a break point on line above, effecively the myUserCtrl is nothing
So it is not fully loaded then
On which part can I retrive myuserCtrl properties value ?
thanks for your help
regards
serge
I try to study Web user control .For that I have created a simple text box
with button as a webuser control which has 2 properties.
Then I drop my user control on a web page for testing.
I have read that If we need to retrive Webuser control properties from the
web page, we need to place the code in the PAge_Prerender event of the form
which contains it.
So what I have do is that I place that webuser control on a web page called
WebPage1.aspx then on the pre_render event of that page I have place
following code :
dim sText as string
sText= myUserCtrl.getValue
Doing that return an error when executin about object not initiliaze. Then
when setting a break point on line above, effecively the myUserCtrl is nothing
So it is not fully loaded then
On which part can I retrive myuserCtrl properties value ?
thanks for your help
regards
serge