Link to home
Start Free TrialLog in
Avatar of hussainAbid
hussainAbid

asked on

Dynamic database driven menu/submenu using ASP.NET

Hi everyone,

I have structure like this
(root) MenuItem1-> (level1) sub menu 1.1
(root) MenuItem2-> (level1) sub menu 2.1 -> (level2) sub menu 2.1.1
(root) MenuItem3-> (level1) sub menu 3.1 -> (level2) sub menu 3.1.2

The above means root level menu has three items and all of them has a child menu and sub menu 2.1 and 3.1 have another child menu level.

Can some one please help me the easiest / best way to implement this menu structure using ASP.NET and C#. I can use javascript if needed and Css is intended to be used for styling.

It will be great if I could be pointed to some examples. I can see there are many spghetti code javascript examples out there But i want to have a good control on items and hence want to build one from scratch .

Many thanks in advanced and looking forward to hear from experts out there.
ASKER CERTIFIED SOLUTION
Avatar of intlaqa
intlaqa
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hussainAbid
hussainAbid

ASKER

Thanks for quick response but a question please if i make something in jquery and deploy solution on ASP.net enabled thirdparty webserver will it work out of the box or does something extra has to be installed on server.?

No man, jQuery is just a JavaScript file you include in the <head> tag of your page, it does not require anything installed on the hosting server.

Please let me help you in the code which builds the <UL>'s and <Li>'s dynamically from the database if you decided to use it. Also let me know if you want to build something which supports Rtl (Right To Left) layout (it seems you are Arabian).
:). I m building a website to support Danish, swedish and Finish language. I will be checking your link tomorrow and then we will take it from there..  Thanks indeed.
Excellent solution. Thanks
Hi Experts,
I am in need of such dynamic menu,
Can you please tell me

>>Then build the <UL>'s and <LI>'s programmatically.

How?A small example will do a lot for me.
Thanks