How To Create Asp Application
To create ASP application you need following things 1. editor (ex: notepad, visual studio) 2. IIS server (which is given in windows operating system)
Step-1 Check IIS is installed or not. To do that first of all find the directory name “Inetpub” in root directory in which your Operating system is installed. For exampled if you installed Windows in C:\ then that folder is in “C:\Inetpub” If you not find that folder in “C:\Inetpub” It means IIS is not installed in your system. So first installed IIS.
Step-2 How to Install IIS Go to control panel
-1-
How To Create Asp Application
Click on ADD REMOVE PROGRAMS
-2-
How To Create Asp Application
Now click on “ADD REMOVE WINDOWS COMPONENT”
-3-
How To Create Asp Application
Now Select IIS option from list
Now press “next”. Now You have to insert windows XP-CD Rom then after it will installed automatically.
-4-
How To Create Asp Application
After that You will see the Directory “Inetpub” in “C:\Inetpub”
Now you can see the following folders in “C:\Inetpub”. You have to create your Virtual directory (project folder) in “wwwroot” folder
Create sample project named “TestAsp” folder in “wwwroot”
-5-
How To Create Asp Application
Step-3 Create Virtual Directory “C:\Inetpub” Virtual directory is the directory of your project which you create in “wwwroot”. For example “TestAsp” folder.
Now you have to make “TestAsp” folder Virtual. To do that follow following steps Go to the Control panel
-6-
How To Create Asp Application
Click on “Administrative Tools” folder
now click on “Internate Information Services”
-7-
How To Create Asp Application
Now you can see your directory “TestAsp” here
-8-
How To Create Asp Application
Right click on “TestAsp” and select “properties”
-9-
How To Create Asp Application
Now “check all” all the check boxes like below
- 10 -
How To Create Asp Application
click on “Create” Button
- 11 -
How To Create Asp Application
After that you can see the screan like below and your folder “TestAsp”in text box
click on “Apply” and then “Ok”
Step-4 Create Sample ASP Application
You can also create a sample ASP page in notepad or Visual Studio. After creating ASP page with file extension *.asp save it in your project directory named “C:\Inetpub\wwwroot \TestAsp”
Sample Asp program: <%="Hello World!"%>
- 12 -
How To Create Asp Application
Save that program as “TestAsp.asp” in folder “C:\Inetpub\wwwroot \TestAsp”
Step-4 Run ASP application To run Asp application, open internet explorer write http://localhost/TestAsp in URL and pressEnter
Now you can so the listing of all pages under “TestAsp” directory as below
Click on file “TestAsp.asp” like below
- 13 -
How To Create Asp Application
Now you can so the output of file “TestAsp.asp” like below
This is your first asp application.
- 14 -