What is ASP.Net?
- What is ASP.Net?
- ASP.Net for PHP Developers
- Creating a Simple ASP.Net Page
- ASP.Net Website Navigation Using a SiteMap
- Using ASP.Net Master Pages and Content Pages
- Validating Input using ASP.Net
- Tracing and Remote Debug in ASP.Net
- Creating Custom Error Pages with ASP.Net
- Managing Session State in ASP.Net
- Using Themes and Skins in ASP.Net
- Creating User Controls in ASP.Net
- Difference between ASP.Net User and Custom Server Controls
- Creating Fully Themable Websites with ASP.Net
- Ultimate Guide to the Web.Config File
- Adding StyleSheets to ASP.Net via C#
- 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.
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.
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.
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