ASP.NET Web Pages Tutorial
ASP.NET is a development framework for creating web pages and websites using HTML, CSS, JavaScript, and server scripts.
ASP.NET supports three different development models:
This tutorial introduces Web Pages.
| Web Pages | | MVC | | Web Forms |
Getting Started
Most developers start learning a new technology by looking at running examples.
Learn Easily with "Run Examples"
Our "Run Examples" tool makes learning Web Pages simpler.
It displays both the ASP.NET code and the HTML output while running examples.
Click the "Run Example" button to see how it works:
Web Pages Example @DateTime.Now
What is Web Pages?
Web Pages is one of the three programming models for creating ASP.NET websites and web applications.
The other two models are Web Forms and MVC (Model View Controller).
Web Pages is the simplest development model for ASP.NET web pages. It provides an easy way to combine HTML, CSS, JavaScript, and server scripts:
- Easy to learn, understand, and use
- Focused on single pages
- Similar to PHP and classic ASP
- Server scripts in Visual Basic or C#
- Full control over HTML, CSS, and JavaScript
Web Pages comes with built-in Web Helpers for databases, videos, graphics, social media, and more, making it easy to extend.
Web Pages Tutorial
If you are new to ASP.NET, we recommend starting with Web Pages.
In our Web Pages tutorial, you will learn how to combine HTML, CSS, JavaScript, and server code using the latest Razor server markup syntax in VB (Visual Basic) or C# (C sharp).
You will also learn how to extend your web pages with programmable Web Helpers, including databases, videos, graphics, social media, and more.
Web Pages Examples
Learn by examples!
Since ASP.NET code is executed on the server, you cannot view the code in your browser. You can only see the plain HTML page output.
On tutorialpro.org, each example displays the hidden ASP.NET code, making it easier to understand how it works.
Web Pages Reference Manual
At the end of this tutorial, you will find a complete ASP.NET reference manual, covering objects, components, properties, and methods.
Using WebMatrix
In this tutorial, we use WebMatrix.
WebMatrix is a simple yet powerful, free ASP.NET development tool created 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)
With WebMatrix, you can start with an empty website and a blank page, or you can use open-source applications from the "Web Application Gallery" for further development. Many PHP and ASP.NET applications are open-source, such as Umbraco, DotNetNuke, Drupal, Joomla, WordPress, and more. WebMatrix also includes built-in security, search engine optimization, and web publishing tools.
The technology and code developed using WebMatrix can be seamlessly transitioned 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