Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

Multiple Page_Load subroutines and User Controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 26 Oct 2005 20:01 GMT
Would you expect there to be a problem if I used a Page_Load routine in both
the header UserControl .ascx file, as well as the base .aspx file?

For example, I want to use a ADO statement with a try catch in the header,
as well as ADO in the base .aspx file.

To use the try catch, it appears that I must embed that statement in a
subroutine?

Is this correct?
//Rutger Smit - 26 Oct 2005 20:06 GMT
You can do your ADO calls in the Page_Load of the aspx and ascx both.
The Page_Load of the aspx will be fired before the Page_Load of the ascx.

Cheers,
//Rutger

http://www.RutgerSmit.com

> Would you expect there to be a problem if I used a Page_Load routine in both
> the header UserControl .ascx file, as well as the base .aspx file?
[quoted text clipped - 6 lines]
>
> Is this correct?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.