Mono Support About Default document 

32686 put(a) pogledan, 3 odgovor(a), 30.5.2011. 20:44:35 - Kreirao(la) gonzalom
30.5.2011. 20:44:35
345 Reputacija 38 Ukupno objava

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
30.5.2011. 21:07:52
7207 Reputacija 956 Ukupno objava

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
31.5.2011. 15:15:32
345 Reputacija 38 Ukupno objava

Great. Thanks.

Gonzalo

3
Ovo je MonoX demo site. Posjetite Mono Software za više detalja.