Web Design that taps into the haromny and vision of your dreams.

What is ASP.Net?

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

Written By on in C#

437 words, estimated reading time 2 minutes.

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

Active Server Pages (ASP.Net) Series
  1. What is ASP.Net?
  2. ASP.Net for PHP Developers
  3. Creating a Simple ASP.Net Page
  4. ASP.Net Website Navigation Using a SiteMap
  5. Using ASP.Net Master Pages and Content Pages
  6. Validating Input using ASP.Net
  7. Tracing and Remote Debug in ASP.Net
  8. Creating Custom Error Pages with ASP.Net
  9. Managing Session State in ASP.Net
  10. Using Themes and Skins in ASP.Net
  11. Creating User Controls in ASP.Net
  12. Difference between ASP.Net User and Custom Server Controls
  13. Creating Fully Themable Websites with ASP.Net
  14. Ultimate Guide to the Web.Config File
  15. Adding StyleSheets to ASP.Net via C#
  16. Extending the Web Sitemap Xml Document

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 on: Friday 23rd June 2017

 

 

Comments

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

Leave a Reply

Your email address will not be published.

By submitting a message you agree to abide by our Terms and Comment Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.

Copyright © 2001-2018 Tim Trott, all rights reserved. Web Design by Azulia Designs

This web page is licensed for your personal, private, non-commercial use only.

Disclaimer, Privacy & LegalSitemapContact Me