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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. dropdownlist question

dropdownlist question

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • K Offline
    K Offline
    krisman
    wrote on last edited by
    #1

    I have a dropdownlist of 5 items, but user wants one that is not in the list. How do I allow for user input/editing of a dropdownlist? Krisman

    W 1 Reply Last reply
    0
    • K krisman

      I have a dropdownlist of 5 items, but user wants one that is not in the list. How do I allow for user input/editing of a dropdownlist? Krisman

      W Offline
      W Offline
      WhoIsKb
      wrote on last edited by
      #2

      I think what you are looking for is something similiar to the combobox that you get in a desktop environment. In the desktop world, the combo can be a list of items or you can set it up so it can be a list and act as a text box that lets the user enter what they want. Unfortunately in the web world we don't have that option. There are a couple different ways to work around it. One you could create your combo with your 5 items but also add another one that says custom or other. When that is selected have a textbox near the combo that allows the user to enter what they want. We use this approach and have the textbox disabled unless they select "other" Hope this helps Kevin

      K 1 Reply Last reply
      0
      • W WhoIsKb

        I think what you are looking for is something similiar to the combobox that you get in a desktop environment. In the desktop world, the combo can be a list of items or you can set it up so it can be a list and act as a text box that lets the user enter what they want. Unfortunately in the web world we don't have that option. There are a couple different ways to work around it. One you could create your combo with your 5 items but also add another one that says custom or other. When that is selected have a textbox near the combo that allows the user to enter what they want. We use this approach and have the textbox disabled unless they select "other" Hope this helps Kevin

        K Offline
        K Offline
        krisman
        wrote on last edited by
        #3

        Thanks. This confirms what I have thought. This helps a lot. Krisman

        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