Hi,
I created my own skin for the web site. It has a different background color for registered and non-registered users. To do that, I places some code in the Page_Load handler of the skin control, the code is below.
However, if I define the top table (or div) as a server control so that I can change it's color, then after login into the site as admin, DNN cannot find the panes and the Add modules menu is incorrect.
I tried to debug this and saw that the code is simply doing FindControl at the top level of the skin. So when I add athe enclosing server side control, FindControl can't find the internal pane control.
This is very annoyoing and I wasn't able to find a solution for this prolem.
Again, I am trying to have a different look for my site for registered users and non-registered users (background color).
Any idea (except changing the code DNN code)???
Here is the code I am using:
<
Private
dnnSOLPARTMENU.Visible =
trMenu.Visible =
trTop.Visible =
dnnSOLPARTMENU.Visible =
trMenu.Visible =
trTop.Visible =
End
</
<
<
...
...
</
</
=======================
table>div><tr ><td valign="top" ><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td class="toppane" colspan="2" id="TopPane" runat="server" valign="top" align="center" ></td> </tr><tr valign="top"><td class="leftpane" id="LeftPane" runat="server" valign="top" align="center"></td><td class="contentpane" id="ContentPane" runat="server" valign="top" align="center"></td></tr><tr><td class="bottompane" colspan="2" id="BottomPane" runat="server" valign="top" align="center"></td></tr></table></td> </tr>script runat="server"> Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadIf DotNetNuke.Security.PortalSecurity.IsInRole(PortalSettings.RegisteredRoleName()) ThenTrueTrueTrue divSite.Style.Add("background-color", "#DDDDDD")ElseFalseFalseFalse
"background-color", "#A1CFEB")End If Subscript>div runat=server id='divSite' >table width="100%" border="0" style="margin:0px" cellspacing="0" cellpadding="0" id="tblSite" >
divSite.Style.Add(