Problem using Web User Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a web user control 'control1.ascx' which is used on page
'default.aspx'. The control renders fine. But I would like to get new values
in the control based on the submit button. So if the control had a value and
I click the submit button. I want the control to load based on the value I
assigned in the submitButton_click code.

But the problem is the page_load event of the control1.ascx is executed
before the submitButton_click code is executed.

How can I get this to work?

Thanks in advance.
 
to process postback data and events, you need to rebuild the form as it was
at render, before onload. in you case just change the values in the onclick
event.

-- bruce (sqlwork.com)
 
Back
Top