473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

IIS related ASP.NET page question

Hello,

I am using ASP.NET with IIS. I have set up a virtual directory called foo
so that when I point my web browser to http://localhost/foo/index.aspx I
can view the output of my ASP.NET web page index.aspx. What I would like
to do is the following:

1. point my web browser to http://localhost/foo/
2. have IIS automatically serve http://localhost/foo/index.aspx

Is there a way to configure IIS to accomplish this task?

Thanks,

Neil
Nov 19 '05 #1
5 1044
You can set up default pages in the IIS configuration screen for your
application. It has some preset ones, and you can add any other ones.

"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6*************************@posting.google.co m...
Hello,

I am using ASP.NET with IIS. I have set up a virtual directory called foo
so that when I point my web browser to http://localhost/foo/index.aspx I
can view the output of my ASP.NET web page index.aspx. What I would like
to do is the following:

1. point my web browser to http://localhost/foo/
2. have IIS automatically serve http://localhost/foo/index.aspx

Is there a way to configure IIS to accomplish this task?

Thanks,

Neil

Nov 19 '05 #2
Sure.

Go into the IIS Manager, open the properties for
the "foo" virtual directory, hit the "Documents" tab,
and add a default document page named "index.asp".

Then, move it to the top of the list, by clicking it,
and click the "Move Up" button until it reaches the top.

OK your way out, and you're good to go!

Juan T. Llibre
ASP.NET MVP
===========
"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6*************************@posting.google.co m...
Hello,

I am using ASP.NET with IIS. I have set up a virtual directory called foo
so that when I point my web browser to http://localhost/foo/index.aspx I
can view the output of my ASP.NET web page index.aspx. What I would like
to do is the following:

1. point my web browser to http://localhost/foo/
2. have IIS automatically serve http://localhost/foo/index.aspx

Is there a way to configure IIS to accomplish this task?

Thanks,

Neil

Nov 19 '05 #3
Aargh!

That should have been "index.aspx", of course.
Not "index.asp"

Sorry!
Juan T. Llibre
ASP.NET MVP
===========
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
Sure.

Go into the IIS Manager, open the properties for
the "foo" virtual directory, hit the "Documents" tab,
and add a default document page named "index.asp".

Then, move it to the top of the list, by clicking it,
and click the "Move Up" button until it reaches the top.

OK your way out, and you're good to go!

Juan T. Llibre
ASP.NET MVP
===========
"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6*************************@posting.google.co m...
Hello,

I am using ASP.NET with IIS. I have set up a virtual directory called foo
so that when I point my web browser to http://localhost/foo/index.aspx I
can view the output of my ASP.NET web page index.aspx. What I would like
to do is the following:

1. point my web browser to http://localhost/foo/
2. have IIS automatically serve http://localhost/foo/index.aspx

Is there a way to configure IIS to accomplish this task?

Thanks,

Neil


Nov 19 '05 #4

Excellent reply!

I followed your steps exactly as you describe them and added
"index.aspx" as one of the default document pages and it
works fantastically.

Thank you,

Neil

Nov 19 '05 #5
Glad to have been of help !
Please post any other snags you run into, OK ?

Juan T. Llibre
ASP.NET MVP
===========
<nz******@cs.mun.ca> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...

Excellent reply!

I followed your steps exactly as you describe them and added
"index.aspx" as one of the default document pages and it
works fantastically.

Thank you,

Neil

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Damian Greene | last post by:
I know this is an asp newsgroup, and I've gotten help from the group on several asp related questions, but I was hoping someone could answer a JScript question I wrote this script that was...
0
by: love_norip | last post by:
I have encountered a problem when I try to visit a web page (like http://www.xxx.org....?arg1=x&arg2=x&....) using HttpWebRequest and HttpWebResponse and related methods .NET provides.The code is...
4
by: Ivan Demkovitch | last post by:
Hi! I have Portal application which is on http. However I like to do user authentification using SSL I like approach most sites use: They have <form name="loginForm" action="https://sss"...
0
by: Steve Peterson | last post by:
Hi I'm rather new at this, so bear with me please. I have a SQL 2000 table that has a an image field. This field is related to a parent table. When a user selects a parent field I need to get...
2
by: shapper | last post by:
Hello, I have 2 pages: Page1.aspx and Page2.aspx. The two pages have common design parts but also not common design parts. Is it possible to create something like this: MasterPageA |
3
by: Jason Huang | last post by:
Hi, In my ASPNET 2.0 web form WebForm1.aspx, I have a GridView GridView1 and some other controls in front of the GridView1. There are CheckBoxes on the GridView1 also. My question is when I...
3
by: Codebug | last post by:
I have a form and would like to know the best method to link it to a related table so I can retrieve data from it to the form, and maintain this link if the Forms current record is changed. I have...
8
by: Cirene | last post by:
I have 1 master page in the root of my website that I would like to share with all pages, even those in my /admin and /client directories. But when pages in the subdir's are viewed the img, css,...
3
by: DEAbhishekBUG | last post by:
sir i am a student and i always want to learn more i replied for the question -how-do-i-say-not-equal-more-than-one-number my reply was 1> if given variable is either not equal to 1 or 2 you need...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.