Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Navigation Bar

Navigation Bar

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jonathan Craig
    wrote on last edited by
    #1

    I want to add a navigation bar to the top of my web pages like the one on Code Project just below the Search box: CodeProject.com >> Forums home page >> ASP.NET It there an article on the site for this or does someone have a code snipplet? Thanks :) Jonathan Craig www.mcw-tech.com

    M 1 Reply Last reply
    0
    • J Jonathan Craig

      I want to add a navigation bar to the top of my web pages like the one on Code Project just below the Search box: CodeProject.com >> Forums home page >> ASP.NET It there an article on the site for this or does someone have a code snipplet? Thanks :) Jonathan Craig www.mcw-tech.com

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Thats not something very hard.You can create a User Control or Server Control.It reads parent file path or URL,and based on it create that navigation.For example ASP.NET page is in Forums directory or it has forum.asp in its name,so it add Forum Home Page link to this navigation and from forumid parameter find out the name of forum .In this case 12076 is for ASP.NET page. Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits

      J 1 Reply Last reply
      0
      • M Mazdak

        Thats not something very hard.You can create a User Control or Server Control.It reads parent file path or URL,and based on it create that navigation.For example ASP.NET page is in Forums directory or it has forum.asp in its name,so it add Forum Home Page link to this navigation and from forumid parameter find out the name of forum .In this case 12076 is for ASP.NET page. Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits

        J Offline
        J Offline
        Jonathan Craig
        wrote on last edited by
        #3

        Thanks for the info. My first idea was to parse the URL but thought I would check the board first. I don't want to recreate the wheel. Thanks again, :) Jonathan Craig www.mcw-tech.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups