ASP.Net Concepts

PAGE UNDER CONSTRUCTION

ASP Basic Concepts

1. The .Net framework (CLR, CLS, JIT, CTS) and auhtorization
The .NET framework is made up of many components such as CLR, CLS, JIT.
CLR >> Common Language Runtime >> is the environment where all the .net applications are executed.
CLS >> is a set of rules that are followed by all the languages of the .net framework.
When a program is compiled by using Visual Studio, the compiler translates the code into IL(interpretable language) instead of machine language.
JIT >> Just in Time >> JIT compiler is used to translate the code from IL to machine language.

2. Life cycle of ASP.net
3. Advantages of ASP.net
4.ADO.Net Architecture
There are 2 main components of ADO.NET architecture
>>a.Dataset
>>b..Net framework data provider which is a set of components including Connection, Command, DataReader, DataAdapter objects.
>>>a.DataSet :
It is a core component of the disconnected architecture of the ADO.net.
It is a memory based relational representation of data.
It is a part of the disconnected environment.
They are cached set of records that are retrieved from the database.
>>>b.DataProvider:
It is used for connecting to a databse retrieving data, storing data in a data set, reading the retrieved data and updating the database.
The 4 main components of data provider are:-
>>>>b1.Connection: This  compoent is used to establish a connection with a datasource such as database.
>>>>b2.Command: This component is used to retrieve, insert, delete and modify
5. Response.Redirect() v/s Server.Transfer() method.
>>eg:Response.Redirect("Home.aspx");
>>ed:Server.Transfer("Home.aspx");
Response.Redirect() method invloves a roundtrip to the server, whereas Server.Transfer converves server resources by avoiding the roundtrip.
Response.Redirect() method changes the URL in the browser's address bar. So they can be bookmarked, whereas Server.Transfer() method retains the orignal URL in the browser's address bar.It just replaces the content of theprevious page with the new one.

6. Master Page
ASP.net master page allows you to create a consistent layout for the page in your application.
A single master page defines the look and feel, as well as the standard behaviuor that you want for all the pages in your application.

7. State Management (Server Side/Client Side)

http://code-studio.blogspot.com/2011/05/state-management-in-aspnet.html

Machine.config
It is used to maintain the complete configuration details of all the web application registered on the webserver of ASP.net

Web.config
It is used to maintain the config details about a single web application. These details include Security, DB connectivity, State Management, authentication.

Features of ASP.net
>>ASP.net is a technology which can be implemented using any dot language such as C#, J#, Vb.Net etc
>>ASP.net support client and server side CACHING. ASP supports only client side caching, caching means a process of maintaining the result or ouput of a web page temporarily for some period of time.
>>Security: It has many built in security features such as Windows Authentication, Form Authentication, Passport Authentication, Custom Authentication.

IIS
>>Internet Information Services.
A group of server which has a set of programs for building and administering web based application.

ADO.Net

>>Connection:This component is used to establish a connection with a data-source such as DB
>>Command:This component is used to retrieve, insert, delete or modify data in a data-source.
>>DataReader:This component is used to retrieve data from a data source in a read-only, forward only mode.
>>DataAdapter:This component is used to transfer data to and from a database. A data adapter retrieves datafrom a database into a data set.
>>DataSet:It is a memory based relational representation of data. A data set is a part of the disconnected environment,
 


 

2011 ·Code-Studio by yrus.