473,473 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

starting ASP.NET

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????
Nov 18 '05 #1
4 1043
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

"josephrthomas" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
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????

Nov 18 '05 #2
can u pls gimme an example so that i can start off
please????tks a lot.....
Nov 18 '05 #3
my eamil is
ex***********@yahoo.com.sg
tks a lot....
really appreciate your help
Nov 18 '05 #4
joseph,
have a look at http://www.asp.net/Tutorials/quickstart.aspx

it has pretty of stuff and its a really nice place to get started. I would
have given you a simple example but there's a lot more and i think this site
has links which cover a great deal of it.

Hope this helps,

HD

"josephrthomas" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
can u pls gimme an example so that i can start off
please????tks a lot.....

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
2
by: ceadtinneh | last post by:
Folks, We're implementing a software based mirroring solution. This solution requires that the SQL Server service on the target server be stopped while data is being replicated from the source...
10
by: Andrew Bullock | last post by:
Hi, code: myClass x = new myClass(); x.dosomethingwith(x,y); How do i make dosomethingwith(x,y) run on a separate thread, and then inform the main thread when it has finished?
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
16
by: Jim Langston | last post by:
I know that functions starting with an underscore, or two underscores, are reserved by the compiler/c++ and should not be used by the user and may cause undefined behavior. My question is, how...
1
by: derik | last post by:
I hav a text file with N number of lines . i am able to read the file till the end .. in between many lines are starting with #. these lines starting with # are to be omitted. pleast help me in...
1
by: sathyan8294 | last post by:
i want to display the name starting with any letter(A-Z,a-z) in textbox from sqldatabase through datagrid using vb.net windows application. for example, values are in datagrid like companyid ...
11
by: Gustaf | last post by:
Some error handling code: catch (System.Xml.XmlException e) { Console.WriteLine("Error in " + e.SourceUri + ": " + e.Message); return; } The output:
1
by: ropo | last post by:
I have a .NET 2.0 app that at one point starts an old MFC App through System.Diagnostics.Process.Start from a model form/ I then wait for it to finish by calling StartedProcess.WaitForExit(); ...
7
by: PaulaCM | last post by:
Hello Again Byters (hmmm... that sounded better in my head!)! Question on Primary Keys / Auto numbering. I want to make sure that each record has its own individual ID (hence primary key) but,...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.