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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:23

Problem with asp.net


Poster: gardar
Dated: Thursday July 31 2003 - 13:22:05 BST

Hi all
I am trying to install the menu to asp.net page but nothing seems to work. I dont get any error message. I there some one who had similiar problem and knows the answer please help.

I am using UserControl to display the menu

<% __at__ Control Language="vb" AutoEventWireup="false" Codebehind="tenglar.ascx.vb" Inherits="frank_v3.tenglar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<script language="javascript" src="mmenu.js"></script>
<script language="javascript" src="menu_array.js"></script>

best regards

Probably a path problem


Poster: gkob
Dated: Friday August 1 2003 - 7:30:04 BST

Hi Gardar,

This is working for me:

Code:
<% __at__ Control Language="c#" AutoEventWireup="false" Codebehind="Header.ascx.cs" Inherits="FinalProject.Controls.Header" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<P>This is a header</P>
<P>
<SCRIPT language=JavaScript src="Menu/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="Menu/mmenu.js" type=text/javascript></SCRIPT>
</P>
<HR width="100%" SIZE="1">


I would guess that the paths to the javascript files are not right. I think the path is usually (but not always) relative to the .aspx file which includes the controls. Request.ApplicationPath should also get you to the root.

Let me know if this fixes it,

gkob