467,877 Members | 1,263 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,877 developers. It's quick & easy.

HOW TO: Set default start up page?

Hi,

I'm using ASP.NET w/ Visual Studio 2005 and the .net development server...
how do I set the default start up page? right now when I go to
http://localhost/WebSite I get a directory listing. I know I'm supposed to
have a "Default.aspx", but I wanted to rename it to something else. Is it
possible to change the name its looking for in the dev server? Or is that
only available in the full blow IIS?
Nov 16 '06 #1
  • viewed: 10821
Share:
4 Replies
Tim

Nobody wrote:
Hi,

I'm using ASP.NET w/ Visual Studio 2005 and the .net development server...
how do I set the default start up page? right now when I go to
http://localhost/WebSite I get a directory listing. I know I'm supposed to
have a "Default.aspx", but I wanted to rename it to something else. Is it
possible to change the name its looking for in the dev server? Or is that
only available in the full blow IIS?

If I understand you question correctly, you should be able to right
click on the page you want to be your start up page in the Solution
Explorer and select "Set as Start Page".

Let me know if that was what you were looking for,
Tim

Nov 16 '06 #2

"Tim" <un**********@mchsi.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>
Nobody wrote:
>Hi,

I'm using ASP.NET w/ Visual Studio 2005 and the .net development
server...
how do I set the default start up page? right now when I go to
http://localhost/WebSite I get a directory listing. I know I'm supposed
to
have a "Default.aspx", but I wanted to rename it to something else. Is it
possible to change the name its looking for in the dev server? Or is that
only available in the full blow IIS?


If I understand you question correctly, you should be able to right
click on the page you want to be your start up page in the Solution
Explorer and select "Set as Start Page".

Let me know if that was what you were looking for,
Tim
That just changes the start page if you run your app through dev studio. I
was talking about having the dev server running, bringing up a copy of IE
and typing in: http://localhost/WebSite into the URL... right now it brings
up a directory listing of that virtual path. Presumably because I don't have
a Default.aspx.

I kind of solved the problem by creating an empty Default.aspx and
redirecting to where I want, but that seems like a hack.
Nov 16 '06 #3
In IIS you can set the names of default pages. Just click on the
properties of the website in IIS console. It's on one of the tabs. You
can find the IIS console under control panel - system administration.
(hopefully I got the name correct as I am working on a dutch machine
atm).
Nobody wrote:
"Tim" <un**********@mchsi.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...

Nobody wrote:
Hi,

I'm using ASP.NET w/ Visual Studio 2005 and the .net development
server...
how do I set the default start up page? right now when I go to
http://localhost/WebSite I get a directory listing. I know I'm supposed
to
have a "Default.aspx", but I wanted to rename it to something else. Is it
possible to change the name its looking for in the dev server? Or is that
only available in the full blow IIS?

If I understand you question correctly, you should be able to right
click on the page you want to be your start up page in the Solution
Explorer and select "Set as Start Page".

Let me know if that was what you were looking for,
Tim

That just changes the start page if you run your app through dev studio. I
was talking about having the dev server running, bringing up a copy of IE
and typing in: http://localhost/WebSite into the URL... right now it brings
up a directory listing of that virtual path. Presumably because I don't have
a Default.aspx.

I kind of solved the problem by creating an empty Default.aspx and
redirecting to where I want, but that seems like a hack.
Nov 16 '06 #4
re:
was talking about having the dev server running, bringing up a copy of IE and typing in:
http://localhost/WebSite into the URL... right now it brings up a directory listing of that
virtual path.
Open the website's properties in the IIS Manager.

Go to the "Documents" tab.

Create a default document named whatever you want it named to.

Click the "Enable Default Document" selection box.

Select the default document you just created
and click the "Move up" button until it's at the top of the list.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaŮol : http://asp.net.do/foros/
===================================
"Nobody" <no****@cox.netwrote in message news:xy************@newsfe16.phx...
>
"Tim" <un**********@mchsi.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>>
Nobody wrote:
>>Hi,

I'm using ASP.NET w/ Visual Studio 2005 and the .net development server...
how do I set the default start up page? right now when I go to
http://localhost/WebSite I get a directory listing. I know I'm supposed to
have a "Default.aspx", but I wanted to rename it to something else. Is it
possible to change the name its looking for in the dev server? Or is that
only available in the full blow IIS?


If I understand you question correctly, you should be able to right
click on the page you want to be your start up page in the Solution
Explorer and select "Set as Start Page".

Let me know if that was what you were looking for,
Tim

That just changes the start page if you run your app through dev studio. I was talking about
having the dev server running, bringing up a copy of IE and typing in: http://localhost/WebSite
into the URL... right now it brings up a directory listing of that virtual path. Presumably
because I don't have a Default.aspx.

I kind of solved the problem by creating an empty Default.aspx and redirecting to where I want,
but that seems like a hack.


Nov 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Ted Apollo | last post: by
2 posts views Thread by zino | last post: by
6 posts views Thread by Mike Fellows | last post: by
3 posts views Thread by vijay_kerji | last post: by
9 posts views Thread by David Veeneman | last post: by
4 posts views Thread by Edward Mitchell | last post: by
4 posts views Thread by cj | last post: by
3 posts views Thread by Cirene | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.