ASP.NET Web Pages - Tutorial
ASP.NET is a development framework for building web pages and websites using HTML, CSS, JavaScript, and server-side scripts.
ASP.NET supports three different development models:
Web Pages, MVC (Model View Controller), and Web Forms:
This tutorial introduces Web Pages。
| Web Pages | MVC | Web Forms |
|---|
Where to Start?
Most developers learn a new technology by looking at a running example.
Learn Easily with "Run Example"
Our "Run Example" tool makes Web Pages easier to learn.
It displays both the ASP.NET code and HTML output while running the example.
Click the "Run Example" button to see how it works:
Web Pages Examples
Hello Web Pages
The time is
@DateTime.Now
Run Example »
What are Web Pages?
Web Pages is one of three programming models for creating ASP.NET websites and web applications.
The other two programming models are Web Forms and MVC (Model View Controller).
Web Pages is the simplest development model for building ASP.NET web pages. It provides a simple way to combine HTML, CSS, JavaScript, and server scripts:
- Easy to learn, easy to understand, easy to use
- Built around a single web page
- Similar to PHP and classic ASP
- Server scripts in Visual Basic or C#
- Full HTML, CSS, and JavaScript control
Web Pages has built-in databases, video, graphics, social media, and many other Web Helpers, making it easy to extend.
Web Pages Tutorial
If you are new to ASP.NET, it is recommended to start with Web Pages.
In our Web Pages tutorial, you will learn how to use the latest Razor server markup syntax in VB (Visual Basic) or C# (C sharp) to combine HTML, CSS, JavaScript, and server code.
You will also learn how to extend your web pages using programmable Web Helpers (including databases, video, graphics, social media, and more).
Web Pages Examples
Learn by Example!
Because ASP.NET code runs on the server, you cannot view the code in your browser. You can only see the plain HTML page output.
In the RUNOOB.COM tutorial, each example displays the hidden ASP.NET code, making it easier for you to understand how it works.
Web Pages Reference
At the end of this tutorial, you will find a complete ASP.NET reference manual introducing objects, components, properties, and methods.
Using WebMatrix
In this tutorial, we use WebMatrix.
WebMatrix is a simple yet powerful, free ASP.NET development tool tailor-made by Microsoft specifically for Web Pages.
WebMatrix includes:
- Web Pages examples and templates
- A web server language (Razor server markup syntax in VB or C#)
- A web server (IIS Express)
- A database server (SQL Server Compact)
- A complete web development framework (ASP.NET)
By using WebMatrix, you can start development from an empty website and a blank page, or you can do secondary development using open-source applications from the "Web Application Gallery". Many PHP and ASP.NET applications are open source, such as Umbraco, DotNetNuke, Drupal, Joomla, WordPress, and so on. WebMatrix also has built-in security, search engine optimization, and web publishing tools.
The techniques and code developed with WebMatrix can be seamlessly transformed into fully professional ASP.NET applications.
If you want to try WebMatrix, click the link below to install it:
http://www.microsoft.com/web/gallery/install.aspx?appid=WebMatrix