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. How to remove line breaks in TreeView? [modified]

How to remove line breaks in TreeView? [modified]

Scheduled Pinned Locked Moved ASP.NET
designsysadminhelptutorialquestion
2 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.
  • S Offline
    S Offline
    Sam M
    wrote on last edited by
    #1

    Hi there, I'm using TreeView control in one sample aspx page. It has one Parent Node and 3 child nodes. While running the application or in design page, that line is breaking and gap is visible in that web page. Please help me how to remove the Line Break?. The code is: <asp:TreeView ID="SampleTreeView" ShowLines="true" runat="server" > <Nodes> <asp:TreeNode Value="Home" NavigateUrl="Home.aspx" ImageToolTip="1" Text="Home" Target="Content" Expanded="True"> <asp:TreeNode Value="Page 1" ImageToolTip="Home" NavigateUrl="Page1.aspx" Text="Page1" Target="Content"> <asp:TreeNode Value="Section 1" ImageToolTip="Section" NavigateUrl="Section1.aspx" Text="Section 1" Target="Content" /> </asp:TreeNode> <asp:TreeNode Value="Page 2" ImageToolTip="2" NavigateUrl="Page2.aspx" Text="Page 2" Target="Content"> </asp:TreeNode> <asp:TreeNode Value="Page 3" NavigateUrl="Page2.aspx" Text="Page 3" Target="Content"> </asp:TreeNode> </asp:TreeNode> </Nodes> </asp:TreeView>

    Regards n Thks Sam.M

    modified on Thursday, March 20, 2008 1:49 AM

    P 1 Reply Last reply
    0
    • S Sam M

      Hi there, I'm using TreeView control in one sample aspx page. It has one Parent Node and 3 child nodes. While running the application or in design page, that line is breaking and gap is visible in that web page. Please help me how to remove the Line Break?. The code is: <asp:TreeView ID="SampleTreeView" ShowLines="true" runat="server" > <Nodes> <asp:TreeNode Value="Home" NavigateUrl="Home.aspx" ImageToolTip="1" Text="Home" Target="Content" Expanded="True"> <asp:TreeNode Value="Page 1" ImageToolTip="Home" NavigateUrl="Page1.aspx" Text="Page1" Target="Content"> <asp:TreeNode Value="Section 1" ImageToolTip="Section" NavigateUrl="Section1.aspx" Text="Section 1" Target="Content" /> </asp:TreeNode> <asp:TreeNode Value="Page 2" ImageToolTip="2" NavigateUrl="Page2.aspx" Text="Page 2" Target="Content"> </asp:TreeNode> <asp:TreeNode Value="Page 3" NavigateUrl="Page2.aspx" Text="Page 3" Target="Content"> </asp:TreeNode> </asp:TreeNode> </Nodes> </asp:TreeView>

      Regards n Thks Sam.M

      modified on Thursday, March 20, 2008 1:49 AM

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Have you solved this?

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      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