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. How to refresh data in dropdownlist

How to refresh data in dropdownlist

Scheduled Pinned Locked Moved ASP.NET
databasetutorial
3 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.
  • M Offline
    M Offline
    mathuros_paiboon
    wrote on last edited by
    #1

    Hi I have dropdownlist that contain items from database, and button to add data into database. when I click button it can insert data into database but dropdownlist items not added ,how I automatically refresh dropdownlist item to show data from button_click Thank.

    B S 2 Replies Last reply
    0
    • M mathuros_paiboon

      Hi I have dropdownlist that contain items from database, and button to add data into database. when I click button it can insert data into database but dropdownlist items not added ,how I automatically refresh dropdownlist item to show data from button_click Thank.

      B Offline
      B Offline
      bubberz
      wrote on last edited by
      #2

      Mathuros! I had the same issue for one of my pages. After you do the db insert/update, do you rebuild the ddl? In my scenario, I called my handler to build the ddl after my Update statement to update the db.

      1 Reply Last reply
      0
      • M mathuros_paiboon

        Hi I have dropdownlist that contain items from database, and button to add data into database. when I click button it can insert data into database but dropdownlist items not added ,how I automatically refresh dropdownlist item to show data from button_click Thank.

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

        It seems you have code to populate dropdown wrapped with IsPostBack condition. make sure you populate it in post back also Sanjay Sansanwal www.sansanwal.com

        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