472,805 Members | 1,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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
4 11057
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marti | last post by:
Dear everyone, Its my understanding that IE6 now uses a default text-size of "Small" rather than IE5's "Medium". Since I have used relative font-sizes (usually in ems) on all my sites, I am...
5
by: Ted Apollo | last post by:
When I develop my ASP.NET 1.1 application locally, the default form is always "WebForm1.aspx." However, when I post the same application to a web server, the default becomes "default.aspx." Why...
2
by: zino | last post by:
Hi, in asp.net , I set the start page to "myStartingPage.html" when user get authenticated and the cookie is created, the following statement is supposed to redirect him to the original requested...
6
by: Mike Fellows | last post by:
when i click a button i want to open the machines default web browser to a specific page how do i do this? Regards Michael Fellows
3
by: vijay_kerji | last post by:
Dear All, I have a ASP web application running with CS2000. It has Default page as default.asp It also contains .NET ASPX pages, which will be called from ASP pages. Can I convert the default...
9
by: David Veeneman | last post by:
I'm just getting started with ASP.NET, using VS 2005. As an exercise, I opened the root web site in VS 2005 and created a simple welcome page. I saved the page as Default.aspx and made sure that...
4
by: Edward Mitchell | last post by:
How can I find the "My Profile" tab on the Start page. I have the "Recent Projects", "Getting Started" and "Visual Studio Headlines" in panes on the left hand side and "MSDN: Visual C++" on the...
4
by: cj | last post by:
When I start a new web app it has a default.aspx in it. Every example I see tell me to add a new aspx file for my pages. What is up with default.aspx?
3
by: Cirene | last post by:
When you right click on a page in VS and set it as the "default page" what actually takes place? How does the site know to go here first?
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.