How to get reference to Control Panel from Command Panel (Building Modules)

Posted on March 6, 2007. Filed under: Gotchas |

The main purpose of the Command Panel (left part of the screen) in the module is to modify Control panel (right part of the screen) in some way – set property, call a method etc. In order to get the reference to the Control Panel you can use following code in the Command Panel :

ControlPanel ctrlPnl = (ControlPanel)this.NamingContainer.FindControl(this.ControlPanelID);

To some of you this may seem rather obvious, but I had to ask to figure this out. So to all you, mere mortals like me, here is how you do it 🙂

Read Full Post | Make a Comment ( None so far )

Working on a live UserControl

Posted on February 20, 2007. Filed under: Gotchas |

In case you’ve wondered how to modify already uploaded user control without constantly uploading it through Sitefinity pages, it’s handy to know that Sitefinity creates a “UserControl” folder inside of the website’s root folder and stores there all uploaded user controls . Once you upload your control, you can open the user control file (.ascx) directly from that folder and make any adjustments there. That way, you’ll be working on, so to say, live user control.

Read Full Post | Make a Comment ( 1 so far )

Liked it here?
Why not try sites on the blogroll...