I wouldnt put in aspx, but that is just a preference.Hiding the widgetcontainer should be easy.1: in the WidgetContainer,html add an id to line 2 and set to hidden for startup<div class="widgetContainerControls widgetBox" id="wc" style="display:none;">
2: in WidgetContainer.js add code to toggle in opening and closing widgetsin onShowWidgetunder if (widget)
...
if (widget) {
dojo.style(dojo.byId("wc"),"display","block"); //if new widget, show controls
in closeWidget before the for loop add //last child
if(children.length== 1){
dojo.style(dojo.byId("wc"),"display","none"); //just closed last widget, hide controls
}
//existing code
for (var i = 0; i < children.length; i++) {
...