Monday, June 1, 2015

ASP.NET Utilities


ASP.NET Utilities

ASP.NET Model

ASP.Net is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required to build up robust web application for PC, as well as mobile devices.

ASP.Net works on top of the HTTP protocol and uses the HTTP commands and policies to set a browser-to-server two-way communication and cooperation.

ASP.Net is a part of Microsoft .Net platform. ASP.Net applications are complied codes, written using the extensible and reusable components or objects present in .Net framework. These codes can use the entire hierarchy of classes in .Net framework.

The ASP.Net application codes could be written in any of the following languages:
  • C#
  • Visual Basic .Net
  • Jscript
  • J#
ASP.Net is used to produce interactive, data-driven web applications over the internet. It consists of a large number of controls like text boxes, buttons and labels for assembling, configuring and manipulating code to create HTML pages.

ASP.Net Web Forms Model

ASP.Net web forms extend the event-driven model of interaction to the web applications. The browser submits a web form to the web server and the server returns a full markup page or HTML page in response.

All client side user activities are forwarded to the server for stateful processing. The server processes the output of the client actions and triggers the reactions.

Now, HTTP is a stateless protocol. ASP.Net framework helps in storing the information regarding the state of the application, which consists of:
  • Page state
  • Session state
The page state is the state of the client, i.e., the content of various input fields in the web form.

The session state is the collective obtained from various pages the user visited and worked with, i.e., the overall session state.

The ASP.Net runtime carries the page state to and from the server across page requests while generating the ASP.Net runtime codes and incorporates the state of the server side components in hidden fields.

ASP.Net Component Model

The ASP.Net component model provides various building blocks of ASP.Net pages. Basically it is an object model, which describes:
  • Server side counterparts of almost all HTML elements or tags, like <form> and <input>.
  • Server controls, which help in developing complex user-interface for example the Calendar control or the Gridview control.
ASP.Net is a technology, which works on the .Net framework that contains all web-related functionalities. The .Net framework is made of an object-oriented hierarchy. An ASP.Net web application is made of pages. When a user requests an ASP.Net page, the IIS delegates the processing of the page to the ASP.Net runtime system.

The ASP.Net runtime transforms the .aspx page into an instance of a class, which inherits from the base class Page of the .Net framework. Therefore, each ASP.Net page is an object and all its components i.e., the server-side controls are also objects.

Components of .Net Framework 4

The various components the .Net framework 4 are:
  • Common Language Runtime or CLR

    It performs memory management, exception handling, debugging, security checking, thread execution, code execution, code safety, verification and compilation.Those codes which are directly managed by the CLR are called the managed code. When the managed code is compiled, the compiler converts the source code into a CPU independent intermediate language (IL) code. A Just in time compiler (JIT) compiles the IL code into native code, which is CPU specific.
  • .Net Framework Class Library

    It contains a huge library of reusable types . classes, interfaces, structures and enumerated values, which are collectively called types.
  • Common Language Specification

    It contains the specifications for the .Net supported languages and implementation of language integration.
  • Common Type System

    It provides guidelines for declaring, using and managing types at runtime, and cross-language communication.
  • Metadata and Assemblies

    Metadata is the binary information describing the program, which is either stored in a portable executable file (PE) or in the memory. Assembly is a logical unit consisting of the assembly manifest, type metadata, IL code and set of resources like image files etc.
  • Windows Forms

    This contains the graphical representation of any window displayed in the application.
  • ASP.Net and ASP.Net AJAX

    ASP.Net is the web development model and AJAX is an extension of ASP.Net for developing and implementing AJAX functionality. ASP.Net AJAX contains the components that allow the developer to update data on a website without a complete reload of the page.
  • ADO.Net

    It is the technology used for working with data and databases. It provides accesses to data sources like SQL server, OLE DB, XML etc. The ADO .Net allows connection to data sources for retrieving, manipulating and updating data.
  • Windows Workflow Foundation (WF)

    It helps in building workflow based applications in Windows. It contains activities, workflow runtime, workflow designer and a rules engine.
  • Windows Presentation Foundation

    It provides a separation between the user interface and the business logic. It helps in developing visually stunning interfaces using documents, media, two and three dimensional graphics, animations and more.
  • Windows Communication Foundation (WCF)

    It is the technology used for building and running connected systems.
  • Windows CardSpace

    It provides safety of accessing resources and sharing personal information on the internet.
  • LINQ

    It imparts data querying capabilities to .Net languages using a syntax which is similar to the tradition query language SQL.

No comments:

Post a Comment