473,385 Members | 1,341 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,385 software developers and data experts.

Is it possible to config "default page" in web.config?

Without IIS configuration, is it possible to set "default page" in
web.config?

I am curious about that because I am developing in VS2005 with ASP.NET
Development Server. I want to config it with web.config.

Thanks.

Apr 27 '07 #1
2 33759
You could perhaps use the urlMappings section to do that.

My personal preference would be to keep the default "default page".

---
Patrice

"Morgan Cheng" <mo************@gmail.coma écrit dans le message de news:
11**********************@c18g2000prb.googlegroups. com...
Without IIS configuration, is it possible to set "default page" in
web.config?

I am curious about that because I am developing in VS2005 with ASP.NET
Development Server. I want to config it with web.config.

Thanks.

Apr 27 '07 #2
IIS7 is supposed to allow you to configure the default document from
web.config. See:
http://blog.newatlanta.com/index.cfm...92836E4EBE8179

As Patrice mentioned, something like this would probably work in ASP.NET 2.0:

<system.web>
<urlMappings>
<add url="~/Default.aspx" mappedUrl="~/CustomStartPage.aspx"/>
</urlMappings>
</system.web>

--
Thanks,
Page Brooks
www.explosivedog.com
"Patrice" wrote:
You could perhaps use the urlMappings section to do that.

My personal preference would be to keep the default "default page".

---
Patrice

"Morgan Cheng" <mo************@gmail.coma écrit dans le message de news:
11**********************@c18g2000prb.googlegroups. com...
Without IIS configuration, is it possible to set "default page" in
web.config?

I am curious about that because I am developing in VS2005 with ASP.NET
Development Server. I want to config it with web.config.

Thanks.


Apr 27 '07 #3

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

Similar topics

3
by: z0mb1e_fr | last post by:
I am writing a script to change a router config. The config is long and the result is that the display stops with a "--more--". Normally we type return to go to a new line or the space bar to go...
8
by: whtevr | last post by:
Consider this HTML on an ASP page called default.asp in a virtual directory: <FORM name="Flogin" id="Flogin" action="" method=post> </FORM> Do I HAVE to put the literal "default.asp" into the...
12
by: Stefano | last post by:
Hi all, what is the correct use of the "default" attribute in XML Schema? For example: <xs:element name="myProperty" type="xs:string" default="myDefaultValue"/> What can I do with it? What...
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
4
by: Ueslei R. Valentini | last post by:
Hi! I'm using Windows Authentication in my application, restricting permissions with authorization for specific users. But when someone try to access and don't have permissions, the default page...
2
by: Guoqi zheng | last post by:
Dear sir, I am using the default paging function of datagrid. Below is my code. <PagerStyle NextPageText="&gt;&gt;&gt;" PrevPageText="&lt;&lt;&lt;" HorizontalAlign="Center" Mode="NumericPages"></PagerStyle> ...
1
by: MS | last post by:
I have an ASP.NET based site, and the main application is stored under a virtual directory called "Main". So in order to view my site, a browser would have to visit www.mydomain.com/Main/. But...
3
by: kjworm | last post by:
Greetings, I have a report displayed on a screen that anyone in the office can look at. The data on this report will change from time to time. This report has different colors displayed...
4
by: olduncleamos | last post by:
I am trying to share one config file between multiple console apps. Is there anyway I can set the config file name for the current application? Thanks in advance.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.