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. dropdownlist selectvalue

dropdownlist selectvalue

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.
  • K Offline
    K Offline
    kishorg1
    wrote on last edited by
    #1

    i have asp page with dropdownlist with username and datatable with same cloumn when page get load first time , i want dropdownlist selectedvalue as datatables column value means in dropdown_itembound event wht i hv to write dropdowunlist1.selectedvalue=??what?? note:datatable values get change accoring updations how i will assign value to dropdownlist??

    I A 2 Replies Last reply
    0
    • K kishorg1

      i have asp page with dropdownlist with username and datatable with same cloumn when page get load first time , i want dropdownlist selectedvalue as datatables column value means in dropdown_itembound event wht i hv to write dropdowunlist1.selectedvalue=??what?? note:datatable values get change accoring updations how i will assign value to dropdownlist??

      I Offline
      I Offline
      IreshPatel
      wrote on last edited by
      #2

      bind dropdownlist with datasource, it will display automaticaly.

      1 Reply Last reply
      0
      • K kishorg1

        i have asp page with dropdownlist with username and datatable with same cloumn when page get load first time , i want dropdownlist selectedvalue as datatables column value means in dropdown_itembound event wht i hv to write dropdowunlist1.selectedvalue=??what?? note:datatable values get change accoring updations how i will assign value to dropdownlist??

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Load data on a dataset from database and bind it with Dropdown list as if(!page.IsPostBack ) // Only when page is load DropDownlist1.DataSource=datasourcename ;

        cheers, Abhijit

        K 1 Reply Last reply
        0
        • A Abhijit Jana

          Load data on a dataset from database and bind it with Dropdown list as if(!page.IsPostBack ) // Only when page is load DropDownlist1.DataSource=datasourcename ;

          cheers, Abhijit

          K Offline
          K Offline
          kishorg1
          wrote on last edited by
          #4

          no iwant to add perticular value of username i have no of rows....with diff username gridview colums r....username,company name,date n upadate link for each row when user can update date n username from dropdown list n save the chanes eg.defaultusername is arti n he will update tht to hema n when nxt time tht page get load in dropdown list select value must be hema not arti

          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