HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP.NET Web Forms - Creating a Website


Learn ASP.NET Web Forms by building a web site from scratch.

Part I: Creating a Web Site.


Create a Web Site

Create an empty web site named DemoWebForms.

If you want to learn how to create an empty web site, please go to the chapter Web Empty Site.


Create a Home Page

In the "DemoWebForms" folder, create a new ASPX file named Default.aspx.

Put the following content inside the file:

Default.aspx

<!DOCTYPE html>

<html>
<head>
  <title>ASP Web Forms Demo</title>
</head>

<body>
  <h1>Welcome to W3Schools</h1>
  <h2>Web Site Main Ingredients</h2>
  <p>A Home Page (Default.aspx)</p>
  <p>A Style Sheet (Site.css)</p>
  <p>A Layout File (Site.master)</p>
</body>

</html>

Run example »


Add an About Page

In the "DemoWebForms" folder, create a new ASPX file named "About.aspx".

Put the following code inside the file:

About.aspx

<!DOCTYPE html>

<html>
<head>
  <title>About</title>
</head>

<body>
  <h1>About Us</h1>
  <p>Lorem Ipsum Porem Lorem Ipsum Porem</p>
</body>

</html>

The about file above contains a heading and a paragraph. Please feel free to edit the content.



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE