communicate between two controls on the same page

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.
11/7/2011 7:35:29 AM
Gravatar
Total Posts 42

communicate between two controls on the same page

Hi Guys

I'm currently developing two web controls , one will be used for inputting processing parameters, the other one will only display the results based upon the inputted parameters. Note: there are a number of reasons why i need two control which i will not discuss at the moment. Both of these controls will be displayed on the same page.

Both controls work independently, but i need a button on the first control (input control) is start a process in the second control and display some results.

I have reviewed a number of articles about Delegates which seems to solve the problem. (refer http://www.domainwebcenter.com/?p=184)

BUT the final element to these solutions is one additional line to connect the two controls.  This code is to be placed in the associated Web page containing the controls.

due to the design of MP , I can not insert this additional line.

Question , what other ways can i achieve this communication between controls within a MP environment ??

Thanks

 

LEE

 

 

 

11/7/2011 7:39:06 AM
Gravatar
Total Posts 18439

Re: communicate between two controls on the same page

My advice is encapsulate both controls inside a single UserControl that is loaded as a CMS plugin, don't try to communicate across CMS plugins.

Hope that helps,

Joe

11/7/2011 7:52:56 AM
Gravatar
Total Posts 42

Re: communicate between two controls on the same page

Hi Joe

wow that was Quick :)

thanks I'll try the single control approach.

To increase the available space on the page , how do i stop the vertical menus displaying on a single page ?

 

Regards

 

LeeB

 

 

 

 

11/7/2011 10:59:59 AM
Gravatar
Total Posts 18439

Re: communicate between two controls on the same page

I don't think a CMS plugin should control whether a menu is displayed on the CMS page, CMS plugins should play nice with pages that may have other CMS plugins on them. 

If you want a CMS page without a vertical sub menu you can create a skin without <portal:PageMenu and assign that skin to the page.

In supporting pages of a feature like an edit page it is reasonable to hide menus if needed and it can be done. In the HtmlEdit.aspx page for example in OnInit we call a method on the mojoBasePage:

 SuppressPageMenu();

Hope that helps,

Joe

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