Tim TrottTim Trott.ninja { color:black; visibility:hidden; }

What is ASP.Net?

By , Monday 26th November 2007 in ASP.Net

ASP 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.

Active Server Pages 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.

ASP.Net Object Model
ASP.Net Object Model

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 are 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 deveop 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 a IIS server to deploy on to.

My website and its content are free to use without the clutter of adverts, tracking cookies, marketing messages or anything else like that. If you enjoyed reading this article, or it helped you in some way, all I ask in return is you leave a comment below or share this page with your friends. Thank you.

About the Author

Tim Trott

Tim is a professional software engineer, designer, photographer and astronomer from the United Kingdom. You can follow him on Twitter to get the latest updates.