Page_Load

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
 
A

alex

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top