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. Binding 2 Dropdownlist and select one datat from 1 drpdwnlst dont see 2nd drpdwnlst

Binding 2 Dropdownlist and select one datat from 1 drpdwnlst dont see 2nd drpdwnlst

Scheduled Pinned Locked Moved ASP.NET
csharpwpfwcf
5 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.
  • S Offline
    S Offline
    SreejithAchutan
    wrote on last edited by
    #1

    I am binding same table data into 2 dropdownlists.If i select one data from first dropdownlist then the selected data willnot be seen in the second dropdownlist.How is it possible in c# application.

    S 1 Reply Last reply
    0
    • S SreejithAchutan

      I am binding same table data into 2 dropdownlists.If i select one data from first dropdownlist then the selected data willnot be seen in the second dropdownlist.How is it possible in c# application.

      S Offline
      S Offline
      SathyaSiva
      wrote on last edited by
      #2

      protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { DropDownList2.SelectedItem.Text = DropDownList1.SelectedItem.Text; } enable dropdownlist1 Autopostback=true

      Sathya

      S 1 Reply Last reply
      0
      • S SathyaSiva

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { DropDownList2.SelectedItem.Text = DropDownList1.SelectedItem.Text; } enable dropdownlist1 Autopostback=true

        Sathya

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

        i want to remove the selected data from second dropdownlist if i select from the first dropdownlist.Is it possible using javascript.

        S 1 Reply Last reply
        0
        • S SreejithAchutan

          i want to remove the selected data from second dropdownlist if i select from the first dropdownlist.Is it possible using javascript.

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

          I don't know the way of javascript in Serverside Use like this. DropDownList2.Items.Remove(DropDownList1.SelectedItem.Text);

          Sathya

          S 1 Reply Last reply
          0
          • S SathyaSiva

            I don't know the way of javascript in Serverside Use like this. DropDownList2.Items.Remove(DropDownList1.SelectedItem.Text);

            Sathya

            S Offline
            S Offline
            SreejithAchutan
            wrote on last edited by
            #5

            Thank you Very much sir for your kind coorporation.i want the code in javascript,so i ask like that.Anyway Thanks.

            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