473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Aitoc FlexMenu.NET

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
Nov 18 '05 #1
3 1159
"Ted Apollo" <te********@yahoo.com> wrote in message
news:Ta********************@comcast.com...
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...
Nov 18 '05 #2
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

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
"Ted Apollo" <te********@yahoo.com> wrote in message
news:Ta********************@comcast.com...
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...

Nov 18 '05 #3
"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
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kdbryant | last post by:
Hi there - my dev team is looking for some c# coding standards....Does anyone have any documentation? I know a lot of people use pascal, but I was wondering what is the standard. Also, looking...
7
by: zorhel | last post by:
Hi. I will do a dynamic menu for a asp.net app.. I don't know yet if how I will get the data for populate this menu: from a sql server database, xml file or what, but I know it will be dynamic any...
6
by: Dave | last post by:
Hello there. I'm interesting how do I create server side menu in ASP.NET, I was searching for some menus, but they are all done with DHTML or JavaScript, so I have some problems to use them. I...
5
by: Sandy | last post by:
How do you create menu items with submenus? An example of what I'm referring to are the microsoft menus to the left of this page with the arrows that show additional topics. -- Sandy
12
by: Frustrated .NET programmer | last post by:
I can easily figure out how to do it in WinForms, but I can't see anywhere how to do it in ASP.NET.
8
by: Sandy | last post by:
Hello - I have a web app currently has regular links down the left-hand side of the pages. They are attached to a database and put into an ascx so all I have to do is change the database info...
5
by: UJ | last post by:
Anybody have any success using pull down menus in framework v1.1? I'm assuming I'll have to buy a third party product. Going to v2.0 isn't a viable alternative just yet. The reason for me...
11
by: Edwin Knoppert | last post by:
Just wanted to verify since we need a good menu for different browsers. The XP lookalikes are awesome!! http://www.aspxlab.com/ From the help: AspxLab Menu and SlideMenu support these...
2
by: Mark Rae | last post by:
Hi, I'm interested in what people think of the new <asp:Menu> control in comparison to other 3rd-party menu controls. E.g. until v2, I used the AITOC FlexMenu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.