login cancel
Scripting language
Client side scripting code:
In the above example if user is not entering username and password we should not submit the request to the server so to check user entered username and password etc… code should be executed within the browser only
Code that is executed within the browser only. code that is executed within the browser window to perform the events and validations is known as client side scripting code.
Programming language that is used to write client side scripting code is known as client side scripting language
Ex: javascript, vbscript, jscript etc….
• Server side technology : in the above example when user enters username and password and clicks on login button then we should submit the webpage
To the server at server side code should be executed to check whether Username and password are correct or not code that is executed at
The Server side is known As server side scripting code
Technologies that we use to write server side scripting code are known as server side technologies.
Ex: ASP, ASP.net, JSP
ASP. net:
• ASP. net is a server side technology or web technology used to build interactive web applications
• It is a next generation technology of Microsoft which is used to provide a new way for developing server side web applications .it is added with a dynamic nature along with some features taken from different technologies and languages
• It is a collection of html (xhtml) ,scripting languages, any one .net supportable language .
• Evolution of ASP. net : the evolution has started a decay ago by “Tim Berne lee” who has established http protocol used for communication.
Based on it the professional have developed html and xml for webpage development and data transformation. Many companies like microsoft,sunmicrosystems, IBM was struggling to add dynamic nature in the WebPages and finally Microsoft has released its first technology for dynamic server side web application called as ASP in the year 1996.
1996 ASP 1.0 ASP.net2.0 ………..> 2004 (beta) ASP.net2.0 ………> 2005 (alpha) ASP.net3.0 ………..>
ASP.net3.5 ………….> 2008 (beta)
• Asp was a powerful technology but failed in the internet market due to some problems like Interpreted execution which is very slow in process
• It is a loosely typed language which does not support any data type
• It uses difficult configuration settings for using the components to develop advanced web applications
• ASP applications crashes frequently due to unpredictable error becoz it doesn’t have a proper structured exception handling or error handling
• Asp is not a object oriented technology so it depends on some other programming language for any component requirement
To overcome these problems Microsoft has provided a new technology under .net called as ASP. Net
FEATURES OF ASP. Net
performance of the application.
o ASP. net supports multiple languages of .net it makes component development easy and it will be OS independent due to IL format.
o Note:ASP1.1 compiles complete web applications at once .only on language can be used.
o ASP2.0 compiles complete web application in page by page pattern. so multiple languages can be used
o .Multidevice or multibrowser support: ASP. net supports device detection due to which ASP. net Supports device detection due to which ASP. net can develop diff types o/p for different types of browsers.
o ASP. net uses easy way for configuration and deployment of the application.ASP.net maintains all its configuration settings in an xml based file which automatically configures IIS before executing the application and it uses the easy way for deployment by developing a setup file
o ASP. net is integrated under .net environment ASP. net can use all the base class libraries of .net framework for developing the web based applications
o ASP. net 1.1 class libraries are added with new class libraries and introduced in ASP. net 2.0
o ASP. net applications run under .net runtime environment i.e.
CLR
o ASP. net 2.0 important feature for executing the web based application by using some concepts of the CLR like
o MEMORY MANAGEMENT:CLR will allocates memory for every user and removes its object when it is not accessible through garbage collector
o TYPE CASTING: checking the data types conversions and providing the functionalities required for execution.
o MULTITHREADING: as web applications are multi users CLR has to identify every client and allocate separate memory for it which is possible only through Threading
o ASP. net has introduced nearly 50 new controls for developing advanced web application with easy and efficient way without writing any code
o ASP. net 2.0 has provided a new technique for simplifying the application designing by introducing master pages ,themes, and skins
o ASP. net provides structural error handling ,tracing, and debugging of the application to avoid the unpredictable
Differences between ASP and ASP.net:
About IIS
Webserver:it is a tool which is used to One or more websites within it
Takes the request from the client process the request and sends the result back to the client
Ex:for windows OS Personal web server
Peers web server we cannot run ASP. net
IIS used for ASP. net
For UNIX os Tomcat
s.no ASP ASP. Net
1. It is object based technology It is object oriented technology
2. It is loosely typed language It is strongly typed language 3. ASP is bounded with scripting
language ASP.net is language
independent which supports scripting language and .net language
4. It uses difficult configuration on IIS ASP.net maintains is req configuration in an xml file 5. It supports three web servers for
execution IIS,PEARL,PERSONAL web server
ASP.net supports only IIS
6. It depends on HTML controls It provides its own controls 7. It does not supports structured error
handling It supports structured error
handling 8. It depends on com tech for database
and file handling It uses .net framework class libraries for database and file handling and com components
9. It is interpreted technology It is compiled technology
10. .asp .aspx
To check whether IIS is present in the system or not within the system Click on start
If a window is opened named IIS console then IIS is present within the machine
If any error window appears then IIS is not present in the machine Installing the IIS if not present:
Go to run prompt Type appwiz.cpl
Click on Add windows components
Check IIS and put O.S cd and follow the steps Order of installation of software:
O.S IIS
Database (sql server/oracle) VS. net 2005
If IIS is installed after visual Studio.NET then ASP. net applications will not run properly becoz ASP. net is not registered at IIS
To reinstall the ASP. net and to register at IIS we have a separate tool as aspnet-regIIS-I
To work with this tool use the following steps
Click start click on programs click on MS.NET framework sdkv2.0 Click on sdk cmd prompt type aspnet_regIIS-I
Note: this will reinstall asp.net s/w and will register asp.net with IIS type IISreset this will stop the iis and restarts iis
Working with ASP. net applications:
• Open visual studio click on file click on new click on website
Visual studio editor-2008
Open dotnet in by typing devenv in command prompt
• To develop ASP.net webforms we can develop in two editors
• Simple text editoe
• Visual studio editor
• Simple text editor:when we develop a webform in simple text editor we can write userinterface and code but the configuration settings are by default considered from a predefined file machine.config
• It is available in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\machine.config
Select ASP. net website template select the programming language with C#.net
Select the location as HTTP type the website name(http://localhost/websitename) ok
Then automatically different windows will open
• Design window
• Source code window
• Business logic window
• Solution explorer window
• Server explorer window
• Tool box
• Property window
• Error List
• When we creates any website in ASP. net by default visual Studio.NET will create the directories in two locations
• C:\inetpun\wwwroot(disk location)
• At IIS
• The directory which is created at this location is called as physical location
• All the original code files are stored in this location
• The directory created at IIS is known as virtual directory
• This directory will contain all the files with the link created to the physical directory files
• Creating virtual directory or alias is to provide security to the original files.
LIFE CYCLE EXECUTION OF ASP.net