Mono Support About Default document 

Viewed 31635 time(s), 3 post(s), 5/30/2011 8:44:35 PM - by gonzalom
5/30/2011 8:44:35 PM
345 Reputation 38 Total posts

Hello,

I created a new custom page with some webparts wich is set as the default page for the site in VS 2010.
When running the site, logged in as admin if I click on "Go to the administration area" and from then try to go back by clicking on "Site Home" I'm lead to the Default.aspx page that comes with monox. The default page for the sample project.
I tryed changing the default-documents setting inside the web.config like this:

<default-documents>
  <document>CustomSiteDefault.aspx</document>
</default-documents>


but it didn't Work.

Do I need to keep a single default page for the entire solution (even thought I created a special folder for my project as suggested in the user's manual) that's called Default.aspx and that's located at the root of the solution tree, or, I can tell MonoX where to go when the user clics on "Site Home" at the administration area?
Thanks in advance,

Gonzalo




1
5/30/2011 9:07:52 PM
7207 Reputation 956 Total posts

It is probably the best idea to keep both Default.aspx and Login.aspx in the root folder as they are. This can be changed, but has a few dependencies in different sections of the system. You could change the link to the home page in the admin section of MonoX (/Mono/Admin/controls/AdminHeader.ascx), but this requires care when your installation is upgraded to the new version (since the MonoX folder gets overwritten). You can also have an empty Default.aspx with Request.Redirect or Server.Transfer in the code behind.

2
5/31/2011 3:15:32 PM
345 Reputation 38 Total posts

Great. Thanks.

Gonzalo

3
This is a demo site for MonoX. Please visit Mono Software for more info.