Page Load event?

Discussion in 'ASP .Net' started by LL, Oct 22, 2003.

  1. LL

    LL Guest

    Hi,

    What's diff between the two page load event? I can debug the second one.

    Please advice.

    Thanks...

    <script language="C#" runat="server">
    protected void Page_Load(Object Src, EventArgs E)
    {
    }
    </script>

    aspxcs file
    private void Page_Load(object sender, System.EventArgs e)

    {
    // Put user code to initialize the page here
    }
     
    LL, Oct 22, 2003
    #1
    1. Advertising

  2. LL

    Natty Gur Guest

    Hi,

    They are quit the same. The second one is preferred because he exist in
    another file and thus separate visualization (HTML) from code.

    Natty Gur[MVP]
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Natty Gur, Oct 22, 2003
    #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. WFB
    Replies:
    1
    Views:
    2,670
    Charlie Nilsson [MSFT]
    Dec 30, 2003
  2. =?Utf-8?B?QWxpcmV6YSBaaWFp?=

    PreRender Event occurs immediatley after Load event

    =?Utf-8?B?QWxpcmV6YSBaaWFp?=, Feb 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,154
    Hans Kesting
    Feb 9, 2004
  3. venky

    Page Load and webcontrol page load

    venky, Jul 6, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,180
    venky
    Jul 11, 2005
  4. GauravGupta
    Replies:
    4
    Views:
    2,153
    Shilpa1234
    Jan 19, 2012
  5. Matcon
    Replies:
    3
    Views:
    21,723
    Matcon
    May 28, 2008
Loading...

Share This Page