Should I use Page_Init or OnInit method.

Discussion in 'ASP .Net' started by harry potter, Feb 7, 2006.

  1. harry potter

    harry potter Guest

    Hi,

    Are there any reasons to use OnInit or Page_Init method to invoke some
    code when the Init event is triggered, if at all. Or are they both just
    the same?

    -S.
    harry potter, Feb 7, 2006
    #1
    1. Advertising

  2. harry potter

    Rick Guest

    In general, a method such as OnInit is implemented (or overriden) by a sub
    (inheriting) class, whereas an event handler is implemented by all other
    classes that want to be notified when the page init occurs.

    "harry potter" <> wrote in message
    news:...
    > Hi,
    >
    > Are there any reasons to use OnInit or Page_Init method to invoke some
    > code when the Init event is triggered, if at all. Or are they both just
    > the same?
    >
    > -S.
    >
    Rick, Feb 7, 2006
    #2
    1. Advertising

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. Guest
    Replies:
    2
    Views:
    541
    Natty Gur
    Jul 13, 2003
  2. Guest
    Replies:
    2
    Views:
    3,089
    Guest
    Jul 16, 2003
  3. Sally
    Replies:
    1
    Views:
    469
    bruce barker
    Apr 15, 2004
  4. paulcis
    Replies:
    2
    Views:
    522
    paulcis
    May 11, 2007
  5. =?Utf-8?B?cm9kY2hhcg==?=

    OnInit and Page_Init

    =?Utf-8?B?cm9kY2hhcg==?=, Oct 29, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    817
    =?Utf-8?B?cm9kY2hhcg==?=
    Oct 30, 2007
Loading...

Share This Page