A
Andy Fish
Hi,
I have a web user control that has a textbox on it. In the form_load event
of the owning form, I dynamically add the web user control to the page.
The Load event of the control fires OK, but the value of the text field is
empty. Later on (say in a "click" event handler for the control) the value
is there OK.
From what I understand, if I loaded the control in the init event of the
owning form, the form's load event would be called after the posted values
were substituted so I would be OK. Unfortunately, I can't do that because
the decision of whether and where to put the control requires other values
on the owning form that aren't available until page load time.
Is there any event that I can hook into (or method I can override) that will
allow me to inspect the textbox value after the control is completely loaded
but before processing any click events?
TIA
Andy
I have a web user control that has a textbox on it. In the form_load event
of the owning form, I dynamically add the web user control to the page.
The Load event of the control fires OK, but the value of the text field is
empty. Later on (say in a "click" event handler for the control) the value
is there OK.
From what I understand, if I loaded the control in the init event of the
owning form, the form's load event would be called after the posted values
were substituted so I would be OK. Unfortunately, I can't do that because
the decision of whether and where to put the control requires other values
on the owning form that aren't available until page load time.
Is there any event that I can hook into (or method I can override) that will
allow me to inspect the textbox value after the control is completely loaded
but before processing any click events?
TIA
Andy