ASP.NET Introduction, Create Website using ASP.NET

ASP.NET is a technology which  provides set of specifications for building web based

App towards server side Execution

->ASP.NET is providing 2 things:

1. .Net Languages programming towards server side coding

It supports programming.[no or f# programming]

2.collection of objects called intrinsic objects.

   Response,request,session,application,server and cache languages programming+collection of objects

-> supports different types of web based application development.

1.normal web application.

     Developing dynamic web pages like login page,---


     Developing business logic to integrate different vendor app’s.

3.Ajax web application:

[asynchronus java script and xml]

                     Developing web pages implementing Ajax specifications,

                     The importance of Ajax is avoiding complete page submission

4.silverlight integration :

      it  supports rich internet application development RIA means implementing shapes,

     animations,videostreaming,transformations,------into webpage development.

5.MVC application:

Developing web pages with the concept of MVC, the advantage is testing will become easier

->the current version is ASP.NET  4.0 to wards.NET4.0[asp.net3.5 towards.net3.5]


ASP.NET 4.0 provides following features:

1.url routing

2.chart control

3.dynamic data

4.silverlight 3.0 integration

5.MVC integration

Request and Response objects:

->request object can be used to read the info comes with

   Client request

          The info can be form data[email id,pass word],browser inf”,----

->response object can be used to send the inf” from server to client.

  The info can be normal text,url-----


         It will send text from server to client


         It will perform redirection to other webpage.


      It will stop page processing[no more responses will be given to client]

->ASP3.0 supports scripting languages towards serverside  programming,scripting languages are

Interpreter based,this doesn’t provide better performance and no proper memory management.

->ASP.NET supports compiler based languages,this provides better  performance and proper

Memory management.

->serverside code requires unique identification.





Creating ASP.NET Web Site:

Open notepad =>





   Response .write(“server side processing”)




=> Save as first.aspx[e:\aspnet 103]


->ASP.NET page extension is aspx[active server pages extension]

->the server side code will be processed by web server and output will be produce towards

Client browser, this output will not contain any server side statements, it contains only html


Go to view menu browser =>   Select Source       

                         <html>->content provided by server to browser


-> page execution takes place at 2 places:

->web server will execute server side code present in page.

->browser will execute html tags and client side script given by web server.

->Default language for is

Page directive:

*Directive is an instruction to server ,it should be first

 Statement with in webpage.

*page directive can be used to provide different instruction to server,it can changing,

Attaching theme,-----

<%@directivename options%>->syntax of directive

Creating webpage using c#:

                    Open  Notepad=>      

                <%@page language=”cs”%>




           Response.Write(“ page using c#”);




*Save as page.aspx




->c# is case sensitive

->In c# statement to be ended with;

ASP.NET page Execution [ASP.NET architecture]:

->server system requires IIs installation installation.

->.NET installation will configure IIs with aspnet_isapi.dll

Aspnet_isapi->ASP.NET internet server application programming interface.

->Aspnet_isapi.dll acts like mediator between webserver

->client request to webserver will be received by inetinfo.exe,

It will verify requested file extension,if it is html the code will be copied to client

Browser,if it is aspx the request will be forwarded to worker process using


->ASP.NET worker process[exefile]can be called as

Engine(or) runtime,it will encapsulate all services needed for

Page execution. worker process will perform following steps:

->it will compile page into dll file.


->dll will maintain a webpage in the form of class.

->webpage class object will be created to process page execution and output

Will be given to client browser.

->webpage dll will be maintained for serving to different clients requests, this provides

Better performance.

Location of webpage dll in server system:

A folder will be created with in temporary files folder to maintain webpage dll’s

C:\windows\\frame work\v2.0(or)4.0

                  \temporary files

                 \aspnet 103 vir\----

              System.web.jhu89.dll[web page dll]

       Page.aspx.kkhjh[xml doc]

->open xml doc with notepad




When client request comes to webpage webserver will read xml doc

To identify webpage dll,the dll will loaded to process webpage and

Producing output client browser.

Designer for ASF.NET:

Designer is a advanced editor compare to notepad editor,this will reduce lot of coding

To developer,this makes developer job easier and development faster.

There are 2 designers available for

1.visual web developer[vwd]

2.visual studio[2008\2010]

->vwd supports only webpage based app development

Visual studio supports different types of app development.

->vmd license is cheaper compare to visual studio,the memory consumption will

Be less compare to visualstudio.

Starting visual studio to develop pages:


Devenv.exe[visual studio exe]=>   Goto file menu => Select new website =>

    Visual basic

      Visual c#-----ASP.NET website

  Location-filesystem  e:\aspnet103\demo


->add webpage into website

     Goto website menu =>   Add new item => Select web form



->designer will include default content into web page[default2.aspx]

<%@ page language=”c#”-----%>


<body>                             //only HTMLcontent will be displayed



  Response.write(“ page using vs2010”);




[it will activate browser to call web page]

Note :

->VS 2008/vs2010 is called multi version environment,it supports application

Developer towards 2.0to4.0.

->visual studio will create a folder towards websites,in this all the website related files

Will be stored.


Demo folder will be created to place website files[default 2.0aspx]

->visual studio supports website development towards 3 locations:

1.file system

           The website will be managed by personal webserver called”cassini web server”

This webserver is built in with visual studio,inthis case IIs is not required


  The website will be managed by webserver IIs.

Location-http                    http\\localhost\virdirname\websitename


The website will be managed by FTP server,this is required when web server is Present in remote location.

Add comment