starting ASP.NET

  • Thread starter Thread starter josephrthomas
  • Start date Start date
J

josephrthomas

hi...i wanan start ASP.NET..
i have followed some books but i cant seem to get
started...:(
i have set up my IIS already.
i made this page in accordance to the book i am
following..

<script language="C#" runat="server">

void Page_Load()

{

Response.Write ("First ASP.NET Line<br />");

Response.Write ("Second ASP.NET Line<br />");

Response.Write ("Third ASP.NET Line<br />");

}

</script>

<html>

<head>

<title>Inserting ASP.NET code Example</title>

</head>

<body>

Line 1 : First HTML Line<br />

Line 1 : Second HTML Line<br />

Line 1 : Third HTML Line<br />



</body>

</html>

but the result is this :
Line 1 : First HTML Line
Line 1 : Second HTML Line
Line 1 : Third HTML Line

the asp codes dont seem to get executed!! :(
can someone pls help me????
 
Joseph,

You are missing some args for the Page_Load
You need to pass object sender, EventArgs e

Think that should sort you out. If you do have VS.NET try the code behind
way. Its a far better way than to do inline coding.

Hope this helps,

HD
 
Back
Top