Log in

View Full Version : Need to create a dynamic 3 level database driven navigation with div content in C#



jqdesigner
12-09-2016, 11:13 AM
Hi,

I am creating a single page application which have 3 level dynamic navigation which show content in div.

Look at the below link it is doing the same thing I tried and it works but it is only in accordion I need it in different way.

http://www.aspforums.net/Threads/108804/Database-Driven-N-LevelMultiLevel-BootstrapResponsive-Vertical-Menu/

I need to make in the following way

5990

the main requirement is I have create e a database base table and keep Parent menu id as column and any menu I want to show under parent and child menu putting the ID of menu in the column.

database structure is
59915992

in simple I am trying to achive is .

on the first screen which is welcome screen I will display all the parent menu which has parent ID = 0

when any parent ID click without page refresh it will display the child menu above parent menu section in div with parent menu highlighted.

when child menu clicked it will display the grand child menu in the same place and show some navigation to go back to main child and Parent menu which I have shown in the interface above.

I will really appreciate if any one can guide me to achieve this. I am building in C# and using SQL server as database.

Thanks

bestellen
05-02-2017, 09:53 AM
If this is WebForms and you don't want to use javascript, then, after you do the save, you can do a Response.Redirect to the same url, but with the anchor tag, e.g. Response.Redirect("myPage.aspx#experience").

This really depends on the rest of your code though. I suggest posting the relevant parts of your code behind so that we can better see what you have done. Also, don't try to avoid javascript - it is too useful to avoid.