What is ASP.NET?
ASP.NET is .........
- ASP stands for Active Server Pages
- ASP.NET is a server side technology that built on the .NET technology from Microsoft.com
- ASP.NET files use the extension ".aspx" to activate the supported web server to compile the ASP.NET files
- ASP.NET also uses delimiters "<%" and "%>" as markup tags to specify the beginning and end of the enclosed script commands.
- ASP.NET also supports Embedded code blocks in Web Forms pages for providing backward compatibility with ASP technology.
Examples
Examples of ASP.NET code
ASP.NET Code Input:<% Response.Write ("<h1>This is a Sample ASP.NET Code</h1>") %>
HTML Web Page Embedded Output: ASP.Net Technology
Unlike ASP technolgy, ASP.NET compile the ASP.NET document and return a HTTP document. In other words, ASP.NET technology adds an abstraction layer on top of HTTP to handle ASP.NET files and the web server becomes operating in a two-tiered way.
ASP.NET Document
Basic Features of ASP.NET files.........
- ASP.NET file is a HTML script with extension ".aspx" to describe web page
- ASP.NET file is just a HTML script containing ASP.NET scripts.
- ASP.NET technology is just an additional script compiling engine to compile the ASP.NET file and return a HTML document.
- HTML document contains HTML tags and plain text without script command can also be an ASP.NET file by renaming the extension to ".aspx"
- ASP.NET technology also enables both ActiveX scripts and ActiveX server components running on the server through the .NET technology.
Examples
Examples of ASP.NET page
HTML Document Input:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Sample Page</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<% Response.Write ("<h1>This is a Sample ASP.NET Page</h1>") %>
</body>
</html>
HTML Web Page Embedded Output: ASP.NET Element
Unlike ASP document, code and page layout are seperated into two sections. In general, ASP.NET document can be divided into three parts.
- Directive block: used by ASP.NET engine as settings for the compilers to process ASP.NET document.
- Script block: used by ASP.NET engine as programming code for generating the HTML document.
- Form; used by ASP.NET engine as document layout for generating the HTML document.
ASP.NET Mechanism
In general, the mechanism of ASP.NET engine in the IIS is similar to a HTML compiler for ASP.NET file.
ASP.NET Additional Information
ASP.NET additional information ..........
- https://docs.microsoft.com/en-us/aspnet/#pivot=aspnet (last
updated on 17Mar2018)