Web.config changing file default location

I've have a tricky question for you:

In Visual C# IDE, how do you change the location of a file within a seperate folder?

So for example

The inital path of this folder was Webproject/folder1/Default.aspx in VS 2008, I converted this to 2010 and needed to rename the Default.aspx to folder1Default.aspx to make it work in 2010, because I couldnt have more than one Default.aspx. Now when I attempt to navigate to this folder, it can't open this as the default page. How can I set this page to be the default location for this specific folder? If the path were Webproject/folder1/folder1Default.aspx, how could I change this location using the web.config file?



You did this, but there should be only 1 default or index file which are defined in IIS or config file.

<location path="folder1">
       <defaultDocument enabled="true">
          <add value="folder1Default.aspx"/> 

I have done it like this in config file

        <remove value="default.aspx" />
        <remove value="iisstart.htm" />
        <remove value="index.html" />
        <remove value="index.htm" />
        <remove value="Default.asp" />
        <remove value="Default.htm" />
        <add value="folder1Default.aspx" />

Need Your Help

Assigned id usages in Nhibernate (ORM’s)

.net nhibernate orm

Why are assigned id’s frowned upon in the Nhibernate world? Is there a particular disadvantage to using it?

SupportMapFragment in Nexus One

android google-maps-android-api-2 nexus-one supportmapfragment

I'm having some problems mixing the old Google Nexus One with the new SupportMapFragment.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.