Multiple Page_Load subroutines and User Controls

Discussion in 'Microsoft ASP .NET' started by Guest, Oct 26, 2005.

  1. Guest

    Guest Guest

    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?
     
    Guest, Oct 26, 2005
    #1
    1. Advertisements

  2. 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

    Paul wrote:
    > 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, Oct 26, 2005
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    0
    Views:
    147
    Andreas Klemt
    Jan 14, 2004
  2. Andreas Klemt
    Replies:
    0
    Views:
    200
    Andreas Klemt
    Jan 15, 2004
  3. bminder
    Replies:
    1
    Views:
    567
    nfedin
    Feb 23, 2004
  4. z. f.
    Replies:
    0
    Views:
    290
    z. f.
    Oct 19, 2004
  5. rockdale
    Replies:
    1
    Views:
    532
    Guest
    Nov 16, 2006
Loading...

Share This Page