"Ted Apollo" <te********@yahoo.com> wrote in message
news:Fp********************@comcast.com...
Ted,
Thank you very much. Your suggestion was a good one -- it works!
Fab!
I like the menu software and I'm glad you pointed it out.
Yeah - the price is right too... :-)
I've not been able to get the ItemWidth, ItemHeight, SubWidth, SubHeight,
or Border to work from just the stylesheet. Any suggestions??
Only to suggest a different approach... I also tried the stylesheet approach
and had much the same problems as you. Therefore, I created a separate aspx
just for the menu called topmenu.aspx, which I placed in the /menuinc
folder. All this file contains is:
<%@ Register TagPrefix="AITOC" Namespace="Aitoc" Assembly="FlexMenu" %>
<table width="100%" cellpadding=0 cellspacing=0 border=0 ID="tblHeader">
<tr>
<td align=center><IMG alt="Sanctuary Rig"
src="../images/logo-lo.jpg"></td>
</tr>
<tr>
<td>
<%if((bool)Session["blnLoggedOn"] == true){%>
<AITOC:FLEXMENU ID="mnuSecureMenu" Runat="Server"
XmlSource="~/menuinc/securemenu.xml" BackgroundON="#D4D0C8"
BackgroundOVER="LightSteelBlue" ItemWidth="100" ItemBorderColor="Navy"
ItemShadowColor="Gray" Border="1" Shadow="1" />
<%}else{%>
<AITOC:FLEXMENU ID="mnuTopMenu" Runat="Server"
XmlSource="~/menuinc/mainmenu.xml" BackgroundON="#D4D0C8"
BackgroundOVER="LightSteelBlue" ItemWidth="100" ItemBorderColor="Navy"
ItemShadowColor="Gray" Border="1" Shadow="1" />
<%}%>
</td>
</tr>
</table>
<br>
Then, on each WebForm which requires the menu, I add the following:
<!--#include file="../menuinc/topmenu.aspx"-->
This will achieve exactly what you require, just in a different way... :-)
You will note there are actually two menus: mainmenu.xml and
securemenu.xml - this is because I change the menu slightly depending on
whether the current user is logged on and, as such, has access to more
features etc... This approach could be extended ad infinitum, whilst keeping
all your menu generation code in one place to avoid repetition i.e. sort of
the "equivalent" of a stylesheet.
N.B. I realise that in-line C# is "bad" (before anyone flames!), and I'm
presently in the process of replacing it with a server-side control.
Let me know how you get on.
Mark