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 selected itm change

Dropdownlist selected itm change

Scheduled Pinned Locked Moved ASP.NET
questiondatabasewinformstutorial
2 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.
  • J Offline
    J Offline
    jetset32
    wrote on last edited by
    #1

    hi all, I have a dropdownlist databound with countries. what i would like to happen is that when a country is selected the correct fields for that country would be loaded onto the page via a user control. i.e. for the UK, they have post code instead of zip code and county instead of state for example. i have three user controls for each different address type i.e. american, european and the uk. In the database of countrys their is a data field value next to the different country so when the country is selected it loads the correct address control onto the page. how do i get the selected item change to work? I think it is something to do with postback?? Thanks in advance! JetSet!

    B 1 Reply Last reply
    0
    • J jetset32

      hi all, I have a dropdownlist databound with countries. what i would like to happen is that when a country is selected the correct fields for that country would be loaded onto the page via a user control. i.e. for the UK, they have post code instead of zip code and county instead of state for example. i have three user controls for each different address type i.e. american, european and the uk. In the database of countrys their is a data field value next to the different country so when the country is selected it loads the correct address control onto the page. how do i get the selected item change to work? I think it is something to do with postback?? Thanks in advance! JetSet!

      B Offline
      B Offline
      Brian M C
      wrote on last edited by
      #2

      Set the AutoPostBack event to true and provide an event handler that subscribes to the SelectedIndexChanged event. -BC

      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