W3Schools.com

ASP.NET Web Pages - WebMatrix


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

Part I: Creating a Web Site with WebMatrix.


Create a Web Site with WebMatrix

Start WebMatrix, and click Site From Template:

WebMatrix

Select Empty Site, name the new site Demo, and click OK:

WebMatrix

WebMatrix creates a new site and displays a workspace window with a menu at the top (to publish, run, start, or stop your web site):

WebMatrix

In the left pane there is a list of your web folders and workspace selector to select working with the site, files, databases, or reports.

Select the Files workspace. This workspace lets you work with files and folders.


Create a Web Page with WebMatrix

In the ribbon bar, click New:

WebMatrix

Choose file type CSHTML, (You will learn more about CSHTML files later) and in the Name box, type default.cshtml:

WebMatrix

When you click OK, WebMatrix creates a web page and opens it in the editor:

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>

</body>
</html>

Use the editor to add a title and a heading:

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Web Pages Demo</title>
</head>
<body>
    <h1>Hello Web Pages</h1>
</body>
</html>

In the Quick Access Toolbar, click Save:

WebMatrix

In the ribbon bar, click Run:

WebMatrix

WebMatrix starts a web server (IIS Express) and runs the page on your computer. The page is displayed in your default browser:

Hello Web Pages




WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE