MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

About Default document  (Mono Support )

Viewed 30254 time(s), 3 post(s) 5/30/2011 8:44:35 PMby gonzalom
gonzalom

gonzalom

5/30/2011 8:44:35 PM
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




This content has not been rated yet. 
345 Reputation 38 Total posts
denis

denis

5/30/2011 9:07:52 PM
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.
This content has not been rated yet. 
7207 Reputation 956 Total posts
gonzalom

gonzalom

5/31/2011 3:15:32 PM
Great. Thanks.

Gonzalo
This content has not been rated yet. 
345 Reputation 38 Total posts