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.

Add Existing MonoX pages and to the Custom Project.  (Mono Support )

14327 put(a) pogledan, 9 odgovor(a) 22.5.2013. 12:44:14Kreirao(la) mev9669
mev9669

mev9669

22.5.2013. 12:44:14
Hi I have created a custom Project and I want to add the Social networking and other user profiles module to the custom project? How can I do this? 

i have created a pages folder and add the module folders to it. and when I rebuild the project, I can see pages from Pages/MonoX/Message.aspx  in the page management from the admin but not the other folders i have placed in the pages folder.

thanks for your help.
Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava
khorvat

khorvat

23.5.2013. 9:03:42
Hi,

we will provide you with a custom project setup with one page containing few social networking modules, we will post this here so you can jump start your evaluation.

When you add new pages manually in e.g. Windows Explorer or via Visual Studio you will have to access these pages directly in order for them to automatically hock into a system. If you do this through the page management screen then this will be done for you automatically.
i have created a pages folder and add the module folders to it. and when I rebuild the project, I can see pages from Pages/MonoX/Message.aspx  in the page management from the admin but not the other folders i have placed in the pages folder.
Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
mev9669

mev9669

23.5.2013. 9:41:58
Thanks a lot Korvat. I hope this article will someone else in the future. Also it will be great if you can add this to your documenation or manual..
Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava
mev9669

mev9669

23.5.2013. 11:55:43
Can you please also add some pages with the code behind file .aspx.cs files in the root directoty? I get below error when I add a page in the root and it inherits masterpage. Please see the error below
Unable to cast object of type 'ASP.default2_aspx' to type 'MonoSoftware.MonoX.BasePage'.


<%@ Page Title="" Language="C#" MasterPageFile="/MonoX/MasterPages/DefaultSmallHeader.master"
    AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="ProjectName.Web.Default2" %>
        

Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava
khorvat

khorvat

23.5.2013. 12:03:03
Can you let us know what project type are you using - Web Application or Web Site ?
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
mev9669

mev9669

23.5.2013. 12:04:05
Solve the second problem by : MonoSoftware.MonoX.BasePage to the code behind
Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava
khorvat

khorvat

23.5.2013. 12:14:33
Yes, you should inherit from BasePage if you want the MonoX CMS functionality to kick in.

Let us know if you need more information and we will provide you with the jump start project soon.
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Dalibor

Dalibor

23.5.2013. 15:22:51
Hi Mev9669,

I've attached a sample project containing one page with some web controls. I had MonoX folder in the same folder where I had the solution files, so the references are set to match that.

If you have any further questions, please let us know.

Best regards,
Dalibor
Ovaj sadržaj još nije ocijenjen. 
250 Reputacija 19 Ukupno objava
mev9669

mev9669

23.5.2013. 16:28:42
Thanks Dabilor,

I will give this a try. 
Ovaj sadržaj još nije ocijenjen. 
515 Reputacija 67 Ukupno objava