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 )

31304 put(a) pogledan, 3 odgovor(a) 30.5.2011. 20:44:35Kreirao(la) gonzalom
gonzalom

gonzalom

30.5.2011. 20:44:35
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




Ovaj sadržaj još nije ocijenjen. 
345 Reputacija 38 Ukupno objava
denis

denis

30.5.2011. 21:07:52
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.
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava
gonzalom

gonzalom

31.5.2011. 15:15:32
Great. Thanks.

Gonzalo
Ovaj sadržaj još nije ocijenjen. 
345 Reputacija 38 Ukupno objava