I have an ASP.NET website application, and there is a home page for my web site. I need to be able to change the default document of my website programmatically (C#) so that I can make another web page take priority above the one that already exists. I would then like to revert back to the previous default document order.
Example :
I have two home pages - Home1.aspx
and Home2.aspx
. In the IIS default document settings I have added the two pages and made Home1.aspx
be the first default document then Home2.aspx
the second. I need in some cases to be able to change the order of the two default documents so that Home2.aspx
is the first default document then Home1.aspx
the second.
How can I do that from my C# code?
Thanks in advance for any response