Friday 10 January 2014

Basics Of ASP.NET 4.5


ASP is the collection of tools , technologies and languages which work together to communicate on multiple platform.(Perl language is used to fetch source code on multiple platforms). Whereas ASP.NET is just technology that run on web server (IIS Server: Internet information Services and ASP Development Server)and used for web development. Only Internet based applications or web application is created through asp.net. Some important terms used in asp.net are :-
  • BCL (Base Class Library): Collection of standard classes or common classes which we can use in .net supported language.
  • CLR(Common Language Runtime): Environment which manages the execution of coding.
  • CTS(Common Type System): Specifies the system which is being used.

From the beginning and till now there are five versions of ASP.NET which are ASP.NET 1.1 , ASP.NET 2.0 , ASP.NET 3.5 , ASP.NET 4.0 and ASP.NET 4.5. We will discuss the working with asp.net 4.5. First of all, check some requirements to run asp.net 4.5 :-
  • Operating system of Microsoft
  • ASP.NET 4.5 with framework 4.5
  • Web server ( IIS or ASP web development server)
  • Visual Studio 2012

Visual studio technique: Code behind technique is used by visual studio which means the coding and designing is different. So two files is created. First one is “.aspx” and other is “.aspx.cs/vb”. “.aspx” is GUI based used for designing and “.aspx.cs(c#) or .aspx.vb(visual basic)” is used for coding. To open a website: click on File > New > Website. After adding website, add web-form which is building block of any website. To add a web-form in the new website, click on website > add new item > web form. Here you can choose the coding language from C# or visual basic.