ASP.NET Web Pages - Tutorial
- Previous Page ASP.NET Introduction
- Next Page WebPages Razor
ASP.NET is an open framework used to build web pages and websites through HTML, CSS, JavaScript, and server-side scripts.
ASP.NET supports three open modes:
Web Pages, MVC (Model View Controller), and Web Forms.
This tutorial explains WEB PAGES.
Web Pages | MVC | Web Forms |
Where to start?
Many developers prefer to learn new technologies by reading examples.
If you need to view a Web Pages instance, please visit this ASP.NET Web Pages demonstration.
Use 'Run Code' to improve learning efficiency
Our 'Run Code' feature can reduce the difficulty of learning Web Pages.
This feature will display and run ASP.NET code, while outputting HTML.
Please click the 'Run Code' button to see how it works:
Web Pages Examples
<html> <body> <h1>Hello Web Pages</h1> <p>The time is @DateTime.Now</p> </body> </html>
Run an instance
What is Web Pages?
Web Pages is one of the three ASP.NET programming models used to create ASP.NET websites and web applications.
The other two programming models are Web Forms and MVC (Model, View, Controller).
Web Pages is the simplest ASP.NET web page development programming model. It provides a simple way to combine HTML, CSS, JavaScript, and server code:
- Easy to learn, read, and use
- Built around a single web page
- Similar to PHP and ASP
- Server scripts use Visual Basic or C#
- Complete control over HTML, CSS, JavaScript
Web Pages can be extended through programmable Web Helpers, including databases, videos, images, social networks, and more.
Web Pages Tutorial
If you are a beginner in ASP.NET, then Web Pages is an excellent starting point.
In our Web Pages tutorial, you will learn how to combine HTML, CSS, JavaScript with server code by using the latest Razor server-side markup syntax of Visual Basic and C#.
You will also learn how to extend web pages using programmable Web Helpers, including databases, videos, images, social networks, and more.
Web Pages Examples
Learn through examples!
Because ASP.NET code is executed on the server, you cannot view the code in the browser. You can only see the pure HTML output.
At CodeW3C.com, each example can display the hidden ASP.NET code. This helps you understand how it works more easily.
Web Pages Reference Manual
This tutorial also provides a complete ASP.NET reference manual, including objects, components, properties, and methods.
We use WebMatrix
In this tutorial, we use WebMatrix.
WebMatrix is a simple yet powerful free ASP.NET development tool, specially developed by Microsoft for Web Pages.
What WebMatrix Includes:
- Web Pages Examples and Templates
- Web Server Language (using VB or C# Razor)
- Web Server (IIS Express)
- Database Server (SQL Server Compact)
- Complete Web Development Framework (ASP.NET)
With WebMatrix, you can start from scratch to build an empty site or a blank page, or build open-source applications from the "Web Application Gallery". PHP and ASP.NET applications are available, such as Umbraco, DotNetNuke, Drupal, Joomla, WordPress, and so on. WebMatrix also has built-in tools for security, search engine optimization, and web publishing.
The skills and code you develop with WebMatrix can be seamlessly converted to professional ASP.NET applications.
If you need to use WebMatrix, please use the following link to install:
http://www.microsoft.com/web/gallery/install.aspx?appid=WebMatrix
- Previous Page ASP.NET Introduction
- Next Page WebPages Razor