ASP.NET is a development framework and a new generation of ASP (Active Server Pages)
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: Web Pages (Web pages), MVC (Model View Controller model-view-controller), and Web Forms (Web Forms):
This tutorial introduces Web Pages .
Web Pages | MVC | Web Forms |
Tip: The simplest ASP.NET model, similar to PHP
and ASP, built-in for database Templates and helpers for , video, social media, and more.Web Pages is one of three programming models for creating ASP.NET websites and Web applications.
The other two programming patterns are Web Forms and MVC (Model View Controller Model-View-Controller).
Web Pages is the simplest development model for developing ASP.NET web pages. It provides an easy way to combine HTML, CSS, JavaScript and server scripts:
Easy to learn, easy to understand, easy to use
Created around a single web page
Similar to PHP and classic ASP
Server script in Visual Basic or C#
Full HTML, CSS and JavaScript control
Web Pages has built-in Web Helpers for databases, video, graphics, social media, and more, so it's easy to extend.
If you are new to ASP.NET, it is recommended to start with Web Pages.
In our Web Pages tutorial, you'll 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 can also learn how to extend your web pages with programmable Web Helpers including databases, video, graphics, social media, and more.
Learn by example!
Because ASP.NET code is executed on the server, you cannot view the code in your browser. You only see normal HTML page output.
In w3cschool.cn, each example will display the hidden ASP.NET code, which will make it easier for you to understand how it works.
Web Pages Example
At the end of this tutorial, you will see a complete ASP.NET reference manual that introduces objects, components, properties, and methods.
Web Pages Reference Manual
In this tutorial, we used WebMatrix.
WebMatrix is a simple but powerful free ASP.NET development tool specifically tailored for Web Pages by Microsoft.
WebMatrix contains:
Web Pages instances and templates
A web server language (Razor server markup syntax for 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 use open source applications in the "Web Application Library" for secondary development. Many PHP and ASP.NET applications are open source, such as Umbraco, DotNetNuke, Drupal, Joomla, WordPress, etc. WebMatrix also has built-in security, SEO, and web publishing tools.
Technology and code developed using WebMatrix can be seamlessly transformed into fully professional ASP.NET applications.
If you would like to try WebMatrix, please click on the link below to install it:
https://webgallery.microsoft.com/gallery
Tip: You can find relevant knowledge points about HTML, CSS, and JavaScript used by ASP.NET on the W3Cschool homepage.