ASP.net Basics

quest) What is ASP.net?

Ans:) ASP.net is a web application framework developed by Microsoft to built dynamic data driven web application and web services.

It is a sub-set of  .Net framework .A framework is a collection of classes .ASP.net is the successor to classic ASP(Active server Page)


quest) What is a Web-Application?

Ans:)A web application is an application that is accessed by the users using a web browsers. e.g chrome,opera, firefox etc.


qest) List the advantages of web applications.

Ans:)Firstly, web applications just needs to be installed on the web server whereas desktop applications need to be installed on every computer where you need to access.

Secondly, Maintenance, support and patches are easier to provide.

Thirdly, only browser is required on the client machine to access web applications.

fouthly, Cross-platform

fifthly, web applications works on client-server architecture.

Note: on server side applications runs under IIS- Microsoft Internet Information Service


Steps To create ASP.net Applications :

Open Visual Studio=> select File=>New Project=>c#=>web=>ASP.net web app

Note: while creating project it consists of two things “Name” and  “solution Name”

Solution contains all the files and projects of your applications and solution explorer can be viewed under view tab in Visual studio.

Project file has an extension of .csproj.

webforms in ASP.net have an extension of .aspx ,It consists of two parts aspx.cs and aspx.designer.cs

Webforms are automatically added it contains HTML.

 

 

 

 

 

 

.Net Basic

Dot Net Basics

Before the Existence of .Net we were developing application using VB 6 (Visual Basic),C++ etc.When we develop an Application that is  a non  .Net Application and compile that application using language compiler we know that an assembly gets generated which may be in .dll or .exe, This native code(.exe or .dll) is in native code(Machine code) as the operating system can understand only 0 and 1 that is the reason why compiler is used

without_.net

This demerit of this application execution is that this Application code is native to only the specified operation system (The OS on which this application runs) If we try to run this on different Operating system it fails because this Machine level code (native code or object code)is native to that operating system on which it is compiled.

NOW lets see how a .Net Application Executes:

.Net supports multiple programming languages like C#,F#,VB, C++ others. If we have a compiler implemented we can use any language. When we use any of these language and develop a .net application and compile it we get an assembly (.dll or .exe) as well but this assembly does not contain native code it contains Intermediate Language(IL) this is the major difference between a .net assembly and pre .net assembly but operating systems can only understands 0’s and 1’s so if we run this IL directly over the OS it will not run that is why there needs to be some body  who will convert the Intermediate language to Machine language which OS can understand and this will be done by the run time environment CLR(Common language Runtime) when .net framework is installed two most important thing get installed one is Class libraries framework and CLR.

The IL does not run directly it executes within the CLR inside the CLR we have one more important component known as JIT Compiler(Just in time Compiler) and generates native code which can be understood by the OS. So the basic advantage is Portability( that is the application will run on any operation system which has a .net framework installed).

With.net