Website development and design blog, tutorials and inspiration

What is ASP.Net?

A look at ASP.Net and Microsoft's web publishing language

By , in C#

What is ASP.Net?
An introduction to Microsofts server-side scripting language for creating dynamic websites in ASP.Net

Active Server Pages, or ASP, is a platform for building scalable websites using the .Net framework. ASP is the successor to ASP 2.0 and makes use of the .Net platform to integrate data and controls on web forms and enables information to be sent via the Internet. enable the construction of dynamic content that can access server resources, such as a database. They allow data to be sent to a client and also data to be received. All processing is done on the server, so the requirements of the client can be very low. XML Web Services (covered separately) enable applications to run over the Internet.

ASP.Net content is browser independent, meaning that pages will render the same under Internet Explorer, Firefox, Opera or Safari, and they are language independent.

ASP.Net Execution Model

ASP.Net pages are stored as text files on the server, however, when the page is accessed they are compiled to MSIL so that the C# and .Net framework can be run in the CLR. To improve performance, ASP.Net uses output caching to prevent pages being compiled and executed unnecessarily.

The .Net Platform and Code Distribution
The .Net Platform and Code Distribution

File Extension Types

ASP.Net has a few different source code file extensions:

  • ASP.Net Web Forms (.aspx)
  • ASP.Net Web Services (.asmx)
  • Classes and code-behind (.vb or .cs)
  • Global application classes (.asax)
  • web.config file
  • Project assembly (.dll)

Web forms contain the dynamic content and HTML elements of the page, and the code behind is the C# code that generates the data, accesses databases and so on. The project assembly contains the C# code compiled into executable form for faster performance. The web.config contains settings for the application.

Common controls

Because of the common type system of the .Net Framework the server classes and controls that you use in a web form are the same controls and classes that you would use in a Windows Forms application. This allows for greater code re-use between Windows Forms developers and web forms developers. It also makes it easier to migrate existing Windows applications to web based forms and web services. We will look at some of the controls in a future tutorial when we will construct simple web forms.

Test environment

Visual Studio and Visual Web Developer both come with a limited version of IIS (Internet Information Services) that can be used for local connections only. It will allow you to develop and test web sites and servers on a local machine using the loopback interface, but it will not accept connections from external machines so you will need an IIS server to deploy on to.

Last updated: 2017-06-23


There are no comments for this post. Be the first!

Leave a Reply

Your email address will not be published.