473,805 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.as px", 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 11110
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.as px", 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**********@m chsi.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.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.as px", 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**********@m chsi.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.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.as px", 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.net wrote in message news:xy******** ****@newsfe16.p hx...
>
"Tim" <un**********@m chsi.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.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.as px", 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
7112
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 now getting reports of "your fonts are too tiny" from various users. Of course, the sites still look fine if those users set their text-size to medium, but face it -- most people don't even know thats an option.
5
2774
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 is this and how can I change the default from "WebForm1.aspx" to "default.aspx?" Thanks, Ted Apollo
2
3066
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 url: ....... ..... .... ... Dim url As String = FormsAuthentication.GetRedirectUrl(userID, true) Response.Redirect(url) but url value is always = "default.aspx" and there is no "default.aspx" in the whole application.
6
1400
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
2181
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 ASP page into .NET ASPX Page(Default.aspx)? (Tried with one sample page, page does not load!) Any help is appreciated,
9
6576
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 name was the first name on the list id the default documents in the IIS control panel. IIS doesn't recognize Default.aspx as the default page for the IIS root web. It will open the page if I type http://localhost/Default.aspx, and if I create an...
4
5833
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 right. The picture in "Introduction to Visual Studio .NET" shows a different Start Page tab with a link "My Profile" highlighted on the left hand side. What I really want to do is restore the default window layout of Visual Studio .NET 2005. ...
4
2971
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
1662
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?
0
9718
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.