how to create asp application

14
How To Create Asp Application - 1 - 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

Upload: chintan-patel

Post on 11-Apr-2015

812 views

Category:

Documents


0 download

DESCRIPTION

How to Create ASP Application

TRANSCRIPT

Page 1: How to Create ASP Application

How To Create Asp Application

- 1 -

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

Page 2: How to Create ASP Application

How To Create Asp Application

- 2 -

Click on ADD REMOVE PROGRAMS

Page 3: How to Create ASP Application

How To Create Asp Application

- 3 -

Now click on “ADD REMOVE WINDOWS COMPONENT”

Page 4: How to Create ASP Application

How To Create Asp Application

- 4 -

Now Select IIS option from list

Now press “next”. Now You have to insert windows XP-CD Rom then after it will

installed automatically.

Page 5: How to Create ASP Application

How To Create Asp Application

- 5 -

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”

Page 6: How to Create ASP Application

How To Create Asp Application

- 6 -

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

Page 7: How to Create ASP Application

How To Create Asp Application

- 7 -

Click on “Administrative Tools” folder

now click on “Internate Information Services”

Page 8: How to Create ASP Application

How To Create Asp Application

- 8 -

Now you can see your directory “TestAsp” here

Page 9: How to Create ASP Application

How To Create Asp Application

- 9 -

Right click on “TestAsp” and select “properties”

Page 10: How to Create ASP Application

How To Create Asp Application

- 10 -

Now “check all” all the check boxes like below

Page 11: How to Create ASP Application

How To Create Asp Application

- 11 -

click on “Create” Button

Page 12: How to Create ASP Application

How To Create Asp Application

- 12 -

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:

<html> <body> <%="Hello World!"%> </body> </html>

Page 13: How to Create ASP Application

How To Create Asp Application

- 13 -

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

Page 14: How to Create ASP Application

How To Create Asp Application

- 14 -

Now you can so the output of file “TestAsp.asp” like below

This is your first asp application.