- Click on Start Button
- Goto Run type inetmgr click on ok

- This will open Internet Information Services(IIS) Manager Window
- In this window double click on local computer Name[CNU-PC(cnu-PC\cnu)]

- Select DefaultWebSite right click on it

- Select Add Virtual Directory—Click on it

- This will open Add Virtual Directory WIndow
- In this Enter Alias or virtual Directory Name(SampleWebSite)

- Click on physical path Ellipsis button
- This will opens Browse For Folder Window go to any Drive and click on Make New Folder Button
- This will create a New folder in the selected directory give any Name to it[AspExamples] Click on ok
- This will closes the Browse For Folder Window and our selected physical path name i.e., created folder name and path appear in Physical path textbox
- Click on Ok

- This will creates the SampleWebSite in Default Website
- Right click on Sample Website
- It will shows some options
- In that click on ConvertToApplication option

- This will open Add Application window in that click on Ok.
- Now SampleWebSite wil appear as the website
- Now Close the Internet Information Services(IIS) Manager Window
Creating a
website with virtual directory Name:-
- Goto Run type devenv clik Ok

- This will open Microsoft VisualSudio
- Click on File Menu—click on New—Click on Web Site…

- This will open New Web Site Window
- In this select VisualC# in Installed Templates,slect ASP.Net Web Site Template,slect .NetFramework 4
- Select Web location as HTTP
- Click on Browse…

- This will opens Choose Location Window in that Select Local IIS
- Select the Website to open [virtual Directory name] i.e., SampleWebSite
- Click on Open

- This will Closes the Choose Location Window & now in New Website click on Ok

- This will creates Website with the Name http://localhost/SampleWebSite/
- It contains by default Default.aspx

- To see the Design of Default.aspx click on Design
- To Run the webpage click on Start Debugging button

- To close the web page click on Close button of the web browser
- To view the Default.aspx.cs .goto SolutionExplorer click on Default.aspx.cs

Steps to add new webpage
- Goto SolutionExplorer
- Right Click on the Website http://localhost/SampleWebSite/
- Select Add New Item….
- This will open Add New Item Window in this select WebForm Template
- If user want to change the web page name then change the Name

- Click on Add this will add the Default2.aspx Webpage to the WebSite i.e., http://localhost/SampleWebSite/
No comments:
Post a Comment