Page_Load

  • Thread starter Thread starter Murphy
  • Start date Start date
M

Murphy

Can I have a page_load event for both an aspx page and a user control (ascx)
that is within the aspx page ?

If not how can I have code that runs both when the user control is displayed
and when a page is displayed without repeating the code ?

Thanks


Murphy
 
you can have page_load in both the control and the page it's in. when you
create a user control in vs.net it will generate the page_load event for
you.
 
Back
Top