how to populate dhtml menu frm sql database using asp.net?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bornslippy
Beginner
Beginner
Posts: 2
Joined: Sun Feb 29, 2004 9:19 am

how to populate dhtml menu frm sql database using asp.net?

Post by bornslippy »

any feedback will be greatly apprecciated...

thanks....
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

hi bornslippy,

It's difficult the get you an answer of this generic question.

I use the menu with ColdFusion and several type of databases like MS-SQL, access and Firebird. That means: All menuitem are stored in a database.

I't quit easy to loop a recordset to generate the menu dynamicly. Instead of using the external file "menu_data.js", i generate the menu into the html-file directly.

Ii would be helpful, f you have more specific questions
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
bornslippy
Beginner
Beginner
Posts: 2
Joined: Sun Feb 29, 2004 9:19 am

Post by bornslippy »

okies, currently im using asp.net with vb.net for the code behind... my query is, where do i place my coding for populating my menu from database?

issit at the design view of my .aspx web form where the html code resides or in the .js file provided my milonic?

sorrie for the question which might sound so stupid but im realli new in all this, onli just pick up programming a few months ago... so hope any one can help me out here...

any feedback will be greatly appreciated... thanks
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

The best position for populating your menu is at the end of your html-file.

Code: Select all

<body>
your html
your menu
</body>
The reason for this are the search-engines.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Just to let you know that demos and sample code for this is currently being developed and we should have something soon as well as building menus from XML.

Cheers
Andy
thlucas
Beginner
Beginner
Posts: 9
Joined: Mon Nov 18, 2002 5:12 pm

VS.NET 2003 Server Control

Post by thlucas »

Hi BornSlippy,

I don't know if you're tracking this thread or not, but I saw your post and thought I would reply. I've created a VS.NET 2003 server control for the Milonic Menu. Check out the following thread for details and sample code - scroll to the bottom of the thread for demo and code downloads:

viewtopic.php?t=4345

Hope it helps,

Todd
Post Reply