Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:44

Re: I made a Milonic Menu .NET custom control!

Poster: pat __at__
Dated: Saturday March 2 2002 - 8:02:27 GMT

And I'm drunk!

Re: I made a Milonic Menu .NET custom control!

Poster: no __at__
Dated: Sunday March 3 2002 - 13:55:18 GMT

Glad to hear you are nicely intoxicated it helps with all the stresses and strains of everyday life :-)

Oh yeah, and thanks for the code I'll check it out properly when I get more familiar with .NET


I made a Milonic Menu .NET custom control!

Poster: misc __at__
Dated: Tuesday March 12 2002 - 2:41:40 GMT

I appologize for not being able to give you more information about it, as I JUST compiled a "working" version. For the most part this might only make sense to programmers keeping up with .net, but here's how it works.

Inserting the control is as easy as inserting ANY custom or server control with You just drag the control onto the page! The HTML looks similar to the following:

<% __at__ Register TagPrefix="cc2" Namespace="MMenu" Assembly="MMenu" %>
<% __at__ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="SiteBorg.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<form id="Form1" method="post" runat="server">
<cc2:MilonicMenu id="menu" runat="server"></cc2:MilonicMenu>

The Page_Load function of your page would look something like this.

private void Page_Load(object sender, System.EventArgs e)
// Put user code to initialize the page here

MMenu.MMenuItem menuitem = new MMenu.MMenuItem();
MMenu.MMLink link = new MMenu.MMLink();
MMenu.MMStyle style = new MMenu.MMStyle();

style.FontName = "arial";

style.StyleName = "style1";
style.MouseOffFontColor = "ffffff";
style.MouseOffBackgroundColor = "564b3d";
style.MouseOnFontColor = "ffffcc";
style.MouseOnBackgroundColor = "99cc33";
style.MenuBorderColor = "999999";
style.FontSize = 12;
style.FontStyle = "normal";
style.FontWeight = "normal";
style.FontName = "Verdana,Tahoma,Helvetica";
style.MenuItemPadding = 3;
style.SubMenuImage = "arrow.gif";
style.TDBorderSeparator = 0;
style.TDHighColor = "66ffff";
style.TDLowColor = "000099";
style.RefererItemFontColor = "";
style.RefererItemBackgroundColor = "";
style.TopBarImage = "";
style.MenuHeaderFontColor = "";
style.MenuHeaderBackgroundColor = "";

menuitem.Style = style;

menuitem.MenuName = "mainmenu";
menuitem.MenuTop = 5;
menuitem.MenuLeft = 150;
menuitem.MenuBorder = 1;
menuitem.ScreenPosition = "left";
menuitem.AlwaysVisible = true;
menuitem.HorizontalMenu = true;
menuitem.PositionTopImage = "right";

link.DescriptionText = "Home";
link.URL = "/menu/";
link.SeparatorBar = true;



I have no more time to type right now, but that's just cool!