ASP.NET

ASP.NET is a server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft and designed to allow programmers to build dynamic web sites, applications and services. The name stands for Active Server Pages Network Enabled Technologies.
It was first released in January 2002 with version 1.0 of the .NET Framework and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.
==Programming models==
ASP.NET supports a number of programming models for building web applications:https://docs.microsoft.com/en-us/aspnet/core/choose-aspnet-framework?view=aspnetcore-2.1
*ASP.NET Web Forms – A framework for building modular pages out of components, with UI events being processed server-side. This framework is not included in the ASP.NET Core versions; it only works in the "classic" ASP.NET, on Windows.
*ASP.NET MVC – A framework that allows programmers to build web pages using the model–view–controller (MVC) design pattern.
* ASP.NET Web Pages – A lightweight syntax for adding dynamic code and data access directly inside the HTML markup.https://docs.microsoft.com/en-us/aspnet/web-pages/overview/getting-started/aspnet-web-pages-razor-faq#Whats_the_difference_between_ASP.NET_Web_Pages,_ASP.NET_Web_Forms,_and_ASP.NET_MVC
*ASP.NET Web API – A framework for building Web APIs on top of the .NET Framework.
*ASP.NET WebHooks – Implements the Webhook pattern for subscribing to and publishing events through HTTP.
*SignalR – A real-time communications framework for bi-directional communication between client and server.
Other ASP.NET extensions include:
* ASP.NET Handler – Components that implement the System.Web.IHttpHandler interface. Unlike ASP.NET Pages, these extensions have no HTML-markup file, no events and other supporting. These extensions has a .NET-based code-file that writes some data to the server HTTP response. HTTP handlers in that ASP.NET-based framework are similar to ISAPI extensions.
*ASP.NET AJAX – An extension with both client-side as well as server-side components for writing ASP.NET pages that incorporate AJAX functionality.
*ASP.NET Dynamic Data – A scaffolding extension that can be used to build data-driven web applications
*ASP.NET SOAP - An extensive framework that allows ASP.NET components to process messages in the Simple Object Access Protocol (SOAP) environment.
==Example==
The following code snippet provides a sample ASP.NET page explaining Page directives, code section and page layout written in C#:
<!-- directives -->
<% @Page Language="C#" %>
<!-- code section -->
<script runat="aspx">
 private void convertoupper(object sender, EventArgs e)
 {
 string str = mytext.Value;
 changed_text.InnerHtml = str.ToUpper();
 }
</script>
<!-- Layout -->
<html>
 <head> 
 <title> Change to Upper Case </title> 
 </head>
 
 <body>
 Conversion to Upper Case 
 
 <form runat="server">
 <input runat="server" id="mytext" type="text" />
 <input runat="server" id="button1" type="submit" value="Enter..." OnServerClick="convertoupper"/>
 
 
 Results: 
 
 </form>
 
 </body>
 
</html>
If you copy this file to the web server root directory, which is generally is c:\iNETput\wwwroot, and then open the file from the browser to execute it. It generates following result:
==Other implementations==
The Mono Project supports "everything in .NET 4.7 except WPF, WWF, and with limited WCF and limited ASP.NET 4.7 async stack."https://web.archive.org/web/20160702192925/http://www.mono-project.com/docs/about-mono/compatibility/ ASP.NET can be run with Mono using one of three options: Apache hosting using the mod_mono module, FastCGI hosting, and XSP.
==See Also==
*ASP.NET in Wikipedia
==References==
Category:Web frameworks