470,641 Members | 1,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 33476
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by z0mb1e_fr | last post: by
8 posts views Thread by Bern McCarty | last post: by
4 posts views Thread by Ueslei R. Valentini | last post: by
2 posts views Thread by Guoqi zheng | last post: by
4 posts views Thread by olduncleamos | last post: by
1 post views Thread by Korara | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.