Creating Your First ASP .Net Page

by top54u.com 30 Oct, 2007
Spotlight.....

 

To develop your first ASP.Net page, it can be created simply by taking an existing HTML file and changing its file name extension to .aspx.
Create HTML page in examples folder that we configured in the last topic IIS Settings, then change its extension from .html to .aspx. Below is the code to develop your first ASP.Net page:

  • Open the notepad.
    Write:
    <html>
    <head>
    <title>My First ASP.Net page</title>
    </head>
    <body>
    Congratulations,<br /> you have successfully created the ASP.Net Page
    </body>
    </html>

  • Save it as "example1.aspx"

  • now run
    http://localhost/examples/example1.aspx

    It will show you the message typed in the above code.

 

Adding Code To a Page

ASP.NET page developers can utilize code blocks to get the dynamic output. Following example will demonstrate you, how to use code blocks in simple HTML code.

<html>
<head>
<title>ASP.Net Code</title>
</head>
<body>
<% Response.Write("Hello World!") %>
</body>
</html>

Save above code as example2.aspx

This asp.net example code will give you the output : Hello World!



Click here for more information about Visual Web Developer Express Edition to create your ASP .Net  website.

Spotlight.....

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

8/23/2008 9:06:11 PM

OUR SPONSORS[+ advertise here]
related videos.....
recent posts.....
top54u ezines.....