google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.: ASP.NET

Tuesday, July 9, 2013

ASP.NET

ASP.NET : -    
ASP -
The full form of it is :A for Active ,S for Server ,P for Pages.
Active Server Pages (ASP), also known as Classic ASP, was introduced in 1998 as Microsoft's first server side scripting engine.
ASP is a technology that enables scripts in web pages to be executed by an Internet server.
ASP pages have the file extension .asp, and are normally written in VBScript.

ASP.NET - ASP.NET pages are compiled.
ASP.NET has better language support, a large set of user controls, XML-based components, and integrated user authentication.
ASP.NET pages have the extension .aspx, and are normally written in VB (Visual Basic) or C# (C sharp).
User controls in ASP.NET can be written in different languages, including C++ and Java.
When a browser requests an ASP.NET file, the ASP.NET engine reads the file, compiles and executes the scripts in the file, and returns the result to the browser as plain HTML.

Why .NET ? OR Advantages of .NET -
1)It is complete technology .Console based ,web based ,client based ,window based applications are in it.
2)It is Language Independent . No need to learn other language.In above 50 + language it can be used.
3) It is Platform Independent .Partially platform independent with editor text which support .NET the Microsoft operating system runs .NET on all of its version .In Linux with MonoExe we can run in it also .Support on windows 7,XP,etc.
4) Automatic Memory Management .By GArbage collector it automatically makes memory management by its algorithm (Disposes,Recall,Algo's)
5)Security
6)It support Interoperability. If project written in VS-6 it can access easi;ly in VS-8.

Note:-
In Notepad .cs can run visual Studio is rich provides help in Dot providing.

.NET Framework:-
Two main components of .NET framework are
1)Frameclass Libraries/Base class libraries
2)Common Language Run-time (Heart  of .NET framework)-Here all .NET application are executed .   

ADO.NET -Active X Data Object .NET make the code simple.
It is divided into two parts -
1)Connected architecture -It has (example:Desktop required all time connection)
a) Connection object
b) Command object(place where we write query)
c) Data Reader(forward only,read only)
d) Data Adapter
2)Disconnected architecture - It has(example: Laptop requires charging)
a)Data Sets-(Insert /update/delete)
     i)Data table
     ii) Data Row
     iii) Data Column
b)Data Relation


Methods of Command objects:-
1)Sql Data Reader dr =cmd.ExecuteReader();
return type is Sql data Reader dr
When there is single query for multiple results use this blindly for select.query.
2)int i =cmd.Execute non.Query();
use this method when there is data Data manipulate query for insert ,update,delete.
3)object obj = cmd.ExecuteScalar();
use this method for query returning single value .
These are used only in Connected architecture and not in disconnected.

Interface-
1)variables ,constructors are not declared .
2)only methods are declared.
3)they are public access by default so no need to write access.
4)There is contract in class and interface 3methods of interface are 100% compulsory.

Collections:-
In Collection we have
1)Sequential collection .
2)Dictionary collection.
3)Specialized collection.
4)Generic collection.

No comments:

Post a Comment

अच्छे विचार करे विचार

  पहचान की नुमाईश, जरा कम करें... जहाँ भी "मैं" लिखा है, उसे "हम" करें... हमारी "इच्छाओं" से ज़्यादा "सुन...