Aitoc FlexMenu.NET

T

Ted Apollo

I'm trying to implement this free menu software, however I'm unable to get
the menu width and height properties to work. Any suggestions? Or are
there other free menu packages that might be better?

Here is the problem I'm having:

In my default.aspx I have:

<AITOC:FLEXMENU
id = "Flexmenu1"
XmlSource = "topmenu.xml"
Runat = "Server"
Width = "90"
Height = "17"
SubWidth = "102"
SubHeight = "18"
Border = "0"
Shadow = "0"
Direction= "0">
</AITOC:FLEXMENU>

However, in the runtime page, the width and height always default to 130 and
21.

var width = 130;
var height = 21;
var subwidth = 102;
var subheight = 18;

Thanks!
Ted Apollo
 
M

Mark Rae

I'm trying to implement this free menu software, however I'm unable to get
the menu width and height properties to work. Any suggestions?

I think this is an erratum in the documentation. I believe that you need
ItemWidth and ItemHeight instead...
Or are there other free menu packages that might be better?

Not that I know of...
 
T

Ted Apollo

Mark,

Thank you very much. Your suggestion was a good one -- it works! I like
the menu software and I'm glad you pointed it out.

However, if I could just trouble you with one last question...

I would like to move as many of the attributes as possible to a sytlesheet.
So far, this is what I have left in the .aspx:

<AITOC:FLEXMENU id="Flexmenu1" XmlSource="topmenu.xml" Runat="Server"
ItemWidth="90" ItemHeight="19" SubWidth="110" SubHeight="19"
Border="0"></AITOC:FLEXMENU>

And this is in the stylesheet:

div {
font-family : Verdana, Tahoma, Helvetica;
font-weight: bold;
}

..clsCMOn {
color: #000000;
background-color: #FFFF00;
padding-left: 0.5em;
padding-top: 0.12em;
}

..clsCMOver {
color: #000000;
background-color: #999999;
padding-left: 0.5em;
padding-top: 0.12em;
}

I've not been able to get the ItemWidth, ItemHeight, SubWidth, SubHeight, or
Border to work from just the stylesheet. Any suggestions??

Thanks again,
Ted Apollo
 
M

Mark Rae

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top