Results 1 to 2 of 2

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

  1. #1
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need to create a dynamic 3 level database driven navigation with div content in C#

    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/108...Vertical-Menu/

    I need to make in the following way

    Click image for larger version. 

Name:	is.jpg 
Views:	184 
Size:	45.6 KB 
ID:	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
    Click image for larger version. 

Name:	databaset-table-data.png 
Views:	294 
Size:	11.3 KB 
ID:	5991Click image for larger version. 

Name:	databaset-table-design.png 
Views:	293 
Size:	8.9 KB 
ID:	5992

    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

  2. #2
    Join Date
    Oct 2016
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Similar Threads

  1. Preload/Refresh Dynamic Ajax Content with database driven content
    By charlieboy in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-03-2012, 04:50 PM
  2. ASP.NET 4.0 Database Driven Website
    By ApacheTech in forum ASP
    Replies: 0
    Last Post: 05-01-2012, 04:37 AM
  3. fading scroller support for asp database driven content
    By aonefun in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-23-2008, 10:39 AM
  4. want to create a sql database driven newsletter
    By pkcidstudio in forum MySQL and other databases
    Replies: 3
    Last Post: 08-02-2006, 09:26 AM
  5. Database driven Menu
    By breeze76 in forum ASP
    Replies: 0
    Last Post: 01-08-2006, 03:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •