indents in dropdownlist text

Discussion in 'ASP .Net Web Controls' started by Mark Finkel, Feb 16, 2005.

  1. Mark Finkel

    Mark Finkel Guest

    I would like a dropdown list to display some entries with indents. I code:
    DataFields.Items.Add(New ListItem("All Data Fields))
    DataFields.Items.Add(New ListItem(" ClientName"))
    DataFields.Items.Add(New ListItem(" SoapMessage"))
    DataFields.Items.Add(New ListItem(" Sender"))
    DataFields.Items.Add(New ListItem(" Receiver"))
    When this is used in the browser the leading spaces do not appear. I have
    tried using and with server.htmlencode to no avail

    Any suggestion? Thanks in advance.
     
    Mark Finkel, Feb 16, 2005
    #1
    1. Advertising

  2. Mark Finkel

    Wilco Bauwer Guest

    Try to use  's instead. nbsp = non-breakable space.
     
    Wilco Bauwer, Feb 16, 2005
    #2
    1. Advertising

  3. Mark Finkel

    Mark Finkel Guest

    LOL :)

    thanks for the suggestion, but i have already tried that. in fact i stated
    that i tried it in my original post - but you never saw that because the &
    nbsp in the post dispayed as " ".

    any other suggestions?


    "Wilco Bauwer" wrote:

    > Try to use 's instead. nbsp = non-breakable space.
    >
    >
     
    Mark Finkel, Feb 17, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    431
    Soren Kuula
    May 27, 2005
  2. Christian Seberino
    Replies:
    21
    Views:
    1,720
    Stephen Horne
    Oct 27, 2003
  3. Ian Bicking
    Replies:
    2
    Views:
    1,056
    Steve Lamb
    Oct 23, 2003
  4. Ian Bicking
    Replies:
    2
    Views:
    752
    Michael Hudson
    Oct 24, 2003
  5. Tim
    Replies:
    1
    Views:
    400
    Simon Forman
    Aug 23, 2006
Loading...

Share This Page