Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6543827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:23:33+00:00 2026-05-25T11:23:33+00:00

The display is awful; there are some spaces between lines. I’m using a asp:treeview

  • 0

The display is awful; there are some spaces between lines.

I’m using a asp:treeview in my web page. The appearance is configured with skin.The TreeViewSkin is written into SkinFile.skin available under App_Themes:

<asp:TreeView SkinID="TreeViewSkin" runat="server" ShowLines="true" ShowCheckBoxes="All" Style="margin-top:10px;">
  <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
  <NodeStyle Font-Names="Verdana" Font-Size="8pt" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
  <ParentNodeStyle Font-Bold="False" />
  <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" />
</asp:TreeView>

For information the data binding is done by BuildTreeview method:

public static void BuildTreeView<T>(this IEnumerable<HierarchyNode<T>> hierarchy, TreeView treeView, string idName, string libName) where T : class
{
    TreeNode treeNode = null;
    var treeview = typeof(T);
    foreach (var obj in hierarchy)
    {
        var nameProperty = obj.GetType().GetProperty("Entity");
        if (nameProperty == null) continue;
        var value = (T)nameProperty.GetValue(obj, null);
        var property = treeview.GetProperty(idName, BindingFlags.IgnoreCase | BindingFlags.Public | BindingFlags.Instance);
        var curElementIdValue = Convert.ToInt32(property.GetValue(value, null));

        var labelProperty = treeview.GetProperty(libName, BindingFlags.IgnoreCase | BindingFlags.Public | BindingFlags.Instance);
        var labelValue = (string)labelProperty.GetValue(value, null);

        if (value != null)  treeNode = new TreeNode() {Text = labelValue, Value = curElementIdValue.ToString()};

        var childNodes = obj.GetType().GetProperty("ChildNodes");
        if (childNodes != null) {
            var propValue = childNodes.GetValue(obj, null);
            BuildTreeNode<T>(propValue as IEnumerable, treeNode, idName, libName);
        }
        if (treeNode != null) treeView.Nodes.Add(treeNode);
    }
}

I’m not the code’s owner; I admit that the code of the method is somewhat obscure…
Is it wrong to show checkbox? I can reproduce partially with Chrome with this sample but not in IE7. I’m disappointed 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:23:34+00:00Added an answer on May 25, 2026 at 11:23 am

    I’ve found a workaround on blogs.msdn.com

    The {DIV} tag generated height is only 1px instead of 20px. 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I display some content in my view using this: <%= Html.Encode(Model.synopsis) %> The content
I display some objects that have thumbnails in two ways: one in a DataGridView,
I display the contents of a table in the database using a ListBox. Each
I display set of images(small). I need to show the larger image(300*300) at some
I'd like to display 100 floating cubes using DirectX or OpenGL . I'm looking
How would one display any add content from a dynamic aspx page? Currently I
I display images in my WPF app using BitmapImage . However, I would like
I display a bunch of posts from users on a page. I have the
I am using an awful propriety CMS system. Its events module can store events
I display some text in the view: .... <%: model.Content %> .... my model.Content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.