Add FolderGalleryModule to .aspx page dynamic.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/10/2010 4:29:24 PM
Gravatar
Total Posts 7

Add FolderGalleryModule to .aspx page dynamic.

I would like to add a photo gallery dynamically. Create a module, which will be a list of articles. And when someone clicks on an article called her a complete description, and still attached to it a few photos. And to upload and display photos of every article I want to use the photo gallery.

Then do this: at the end of Page_Load write the following lines:

mojoPortal.Web.GalleryUI.FolderGalleryModule myFotogallry = new mojoPortal.Web.GalleryUI.FolderGalleryModule ();
test.Controls.Add (a);

There are no parameters myFotogallry I do not ask))

As a result, the second line comes out error. Namely, an error pops in mojoPortal.Web.GalleryUI.FolderGalleryModule in the performance OnInit. There is a control protected global:: mojoPortal.Web.Controls.Album Album1, and its meaning I still null.

Please help us deal with the problem. Or tell my alternative solutions:))

You must sign in to post in the forums. This thread is closed to new posts.