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. inside the values in the Dropdownlist

inside the values in the Dropdownlist

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 3 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.
  • O Offline
    O Offline
    Oga M
    wrote on last edited by
    #1

    how do I INSIDE THE VALUES IN THE DROPDOWNLISTBOX OGA M

    S S 2 Replies Last reply
    0
    • O Oga M

      how do I INSIDE THE VALUES IN THE DROPDOWNLISTBOX OGA M

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      HI :confused: Please post proper Query What you want to do with dropdown control ? :doh::confused:

      Thanks and Regards Sandeep If you want something you never had, do something you have never done!

      O 1 Reply Last reply
      0
      • O Oga M

        how do I INSIDE THE VALUES IN THE DROPDOWNLISTBOX OGA M

        S Offline
        S Offline
        senthil_rajesh_kavin
        wrote on last edited by
        #3

        You can add the values inside of the dropdownlist by in asp.net(c#) void page_load() { -------- --------- dropdownlist1.Items.Add("INDIA"); dropdownlist1.Items.Add("CHINA"); dropdownlist1.Items.Add("U.S.A"); dropdownlist1.Items.Add("U.A.E"); -------- ----- }

        1 Reply Last reply
        0
        • S Sandeep Akhare

          HI :confused: Please post proper Query What you want to do with dropdown control ? :doh::confused:

          Thanks and Regards Sandeep If you want something you never had, do something you have never done!

          O Offline
          O Offline
          Oga M
          wrote on last edited by
          #4

          To display items oga m

          S 1 Reply Last reply
          0
          • O Oga M

            To display items oga m

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            Depends on your requirment Items can be added Staticly or dynamically 1) static way :- Right click the drop down list go to collection/items add there 2) Dynamically :- Views.Items.Add(new ListItem("StringName","StringValue");

            Thanks and Regards Sandeep If you want something you never had, do something you have never done!

            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