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. Combo box is populating more than once

Combo box is populating more than once

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • D Offline
    D Offline
    dev dhoundiyal
    wrote on last edited by
    #1

    Hi I have a combo which displays all branch name, and another combo which displays employees of selected branch. now the problem is every time i select a branch, the combo displaying branch name refreshed again

    P _ J 3 Replies Last reply
    0
    • D dev dhoundiyal

      Hi I have a combo which displays all branch name, and another combo which displays employees of selected branch. now the problem is every time i select a branch, the combo displaying branch name refreshed again

      P Offline
      P Offline
      P A N K A J
      wrote on last edited by
      #2

      I think you are populating the dropdownlist every time when the page posts back. that why your dropdownlist populating again & again.

      Take it easy

      1 Reply Last reply
      0
      • D dev dhoundiyal

        Hi I have a combo which displays all branch name, and another combo which displays employees of selected branch. now the problem is every time i select a branch, the combo displaying branch name refreshed again

        _ Offline
        _ Offline
        _AK_
        wrote on last edited by
        #3

        Probably it is getting posted back to the server on selecting in the drop down list. Do set the autopostback property of the drop down list control to false.

        Best Regards, Apurva Kaushal

        1 Reply Last reply
        0
        • D dev dhoundiyal

          Hi I have a combo which displays all branch name, and another combo which displays employees of selected branch. now the problem is every time i select a branch, the combo displaying branch name refreshed again

          J Offline
          J Offline
          just3ala2
          wrote on last edited by
          #4

          Or u can put this code If Not Me.Page.IsPostBack() Then 'Put the code that populates the combo box End If Hope this would help ...

          Best Regards 3ala2 :)

          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