custom control problems

  • Thread starter Thread starter John Slate
  • Start date Start date
J

John Slate

I have developed a custom control for use in a webform. The control has
a button that when clicked sets a public text property. I want for users
of this control to be able to read this property from the webform.
however, if I try to read the Text property from the Page_Load method,
nothing is returned, since Page_Load fires before the control fires its
button click event. Any ideas what I am doing wrong?
 
I'm don't know if I completely understand the issue, I have a couple questions.

Are you utilizing the page_load event in the text control, or inside the web
form?
Do you want users to be able to read the text property on the first page
load, or only when the button is clicked?
Where are you setting the text property in the first place? Is it
initialized in the button click event of the usercontrol?

Hopefully I can help you out but I'm just a little unclear about what the
situation is.
 
Back
Top