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. Insertion from DropDownList

Insertion from DropDownList

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

    I fill a dropdownlist with values from a table's column. but when i perform an insertion operation into another table based on selected data from the dropdownlist, it only insert the first value of the dropdownlist and not the one i selected. How do i resolve this?

    B 1 Reply Last reply
    0
    • B Banjo Ayorinde

      I fill a dropdownlist with values from a table's column. but when i perform an insertion operation into another table based on selected data from the dropdownlist, it only insert the first value of the dropdownlist and not the one i selected. How do i resolve this?

      B Offline
      B Offline
      Bijay Bhaskar Deo
      wrote on last edited by
      #2

      have u used Dropdownlist.SelectedValue property for gettiing the the data from the dropwornlist. U need to explain the problem more.

      Bijay Bhaskar Deo Thanks & Regard

      B 1 Reply Last reply
      0
      • B Bijay Bhaskar Deo

        have u used Dropdownlist.SelectedValue property for gettiing the the data from the dropwornlist. U need to explain the problem more.

        Bijay Bhaskar Deo Thanks & Regard

        B Offline
        B Offline
        Banjo Ayorinde
        wrote on last edited by
        #3

        Yea! have used selectedValue property, but still pick the fisrt value and not the selected value during insertion. pls this only affect dropdownlist filled with values from a table and not that of hardcoded values

        S 1 Reply Last reply
        0
        • B Banjo Ayorinde

          Yea! have used selectedValue property, but still pick the fisrt value and not the selected value during insertion. pls this only affect dropdownlist filled with values from a table and not that of hardcoded values

          S Offline
          S Offline
          SAIRS
          wrote on last edited by
          #4

          you probabaly need to check the post back ispostbak property because every time you change the selection of the dropdown it is refreshing that is why you get the same data.try if not ispostback option

          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