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. Drop down list selected value changed

Drop down list selected value changed

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

    hi, can we check if the selected value of the drop down list box has been changed?

    scarface

    M T N 3 Replies Last reply
    0
    • S scar_face

      hi, can we check if the selected value of the drop down list box has been changed?

      scarface

      M Offline
      M Offline
      mr_muskurahat
      wrote on last edited by
      #2

      yes when ever selected value of dropdown is changed the event selected index changed is called if ispost back property of dropdown list is set to true. or you can check it on client side also without postback.

      Government Dyal Singh College Lahore.

      1 Reply Last reply
      0
      • S scar_face

        hi, can we check if the selected value of the drop down list box has been changed?

        scarface

        T Offline
        T Offline
        tech603
        wrote on last edited by
        #3

        Here is an example of how it can be done. On the main page i have a label that reads the value of the dropdownlist and once the dropdownlist updates it re-populates the label. the main page

        Update1
        Update2
        

        and the code behind

        protected void Page_Load(object sender, EventArgs e)
        {
        Label1.Text = DropDownList1.SelectedValue;

            }
        

        This is a quick example just to point you in the right direction. Hope it helps.

        Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com

        1 Reply Last reply
        0
        • S scar_face

          hi, can we check if the selected value of the drop down list box has been changed?

          scarface

          N Offline
          N Offline
          nish111
          wrote on last edited by
          #4

          Use selected IndexChange event of DropDownList

          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