Page Load event?

  • Thread starter Thread starter LL
  • Start date Start date
L

LL

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
}
 
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
 
Back
Top