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. Code Projects style menu bar

Code Projects style menu bar

Scheduled Pinned Locked Moved ASP.NET
wpfsysadminhelpquestionlearning
1 Posts 1 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.
  • W Offline
    W Offline
    wheelerbarry
    wrote on last edited by
    #1

    Hi, i'm in the process of learning ASP, so this is probably a really stupid question. I'm trying to create a simular effect to the green menu bar the code project has above. On the left i would like the menu, and on the right, the login status. I have tried a few things with div tags and styles but not got it working correctly. I notice above it is done with tables. Is that the only / best way to do it. This is the snipet of code im working at the moment. The left and right styles just have float set to left and right (surprisingly).

    <div id="mainMenu" >
            <asp:SiteMapDataSource ID="siteMapDataSource" runat="server" ShowStartingNode="False" />
            <asp:Menu ID="menu" runat="server" DataSourceID="siteMapDataSource" Orientation="Horizontal"
                DisappearAfter="200" StaticEnableDefaultPopOutImage="False" 
                  CssClass ="left">
            </asp:Menu>
            <div class="right">
            <asp:LoginView ID="loginView" runat="server">
                <LoggedInTemplate>
                    <asp:LoginName ID="loginName" runat="server" />
                </LoggedInTemplate>
                <AnonymousTemplate>
                        You are not logged in
                </AnonymousTemplate>
            </asp:LoginView>
            &nbsp;|&nbsp;
            <asp:LoginStatus ID="loginStatus" runat="server" />
        </div>
    </div>
    <div id="content">
        <asp:ContentPlaceHolder ID="mainContent" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    

    Thanks in advance for any help.

    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