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

dropdownlist

Scheduled Pinned Locked Moved ASP.NET
databasequestion
7 Posts 5 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.
  • V Offline
    V Offline
    venky456
    wrote on last edited by
    #1

    hi in my application i aam using two dropdownlists. in pageload i pass values for first dropdown and select index of the first dropdown i display second dropdown values. but without refreshing the page how can i get values into second dropdown. regards venkat

    I A 2 Replies Last reply
    0
    • V venky456

      hi in my application i aam using two dropdownlists. in pageload i pass values for first dropdown and select index of the first dropdown i display second dropdown values. but without refreshing the page how can i get values into second dropdown. regards venkat

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Put both dropdownlist in update panel bEst rEgard pAthan

      please don't forget to vote on the post that helped you.

      S 1 Reply Last reply
      0
      • I Imran Khan Pathan

        Put both dropdownlist in update panel bEst rEgard pAthan

        please don't forget to vote on the post that helped you.

        S Offline
        S Offline
        Sarfaraj Ahmed
        wrote on last edited by
        #3

        Thanks Imram it does work, im going to give u maximum point

        Sarfarj Ahmed

        I 1 Reply Last reply
        0
        • S Sarfaraj Ahmed

          Thanks Imram it does work, im going to give u maximum point

          Sarfarj Ahmed

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          Sarfaraj Ahmed wrote:

          Thanks Imram

          Always Welcome:)

          please don't forget to vote on the post that helped you.

          1 Reply Last reply
          0
          • V venky456

            hi in my application i aam using two dropdownlists. in pageload i pass values for first dropdown and select index of the first dropdown i display second dropdown values. but without refreshing the page how can i get values into second dropdown. regards venkat

            A Offline
            A Offline
            Arif patel
            wrote on last edited by
            #5

            set Autopostback property=True of Dropdownlist1...

            K 1 Reply Last reply
            0
            • A Arif patel

              set Autopostback property=True of Dropdownlist1...

              K Offline
              K Offline
              Kasi Viswanathan
              wrote on last edited by
              #6

              Arif patel wrote:

              Autopostback property=True of Dropdownlist1

              It will refresh the page...Which Venky dosen't want

              A 1 Reply Last reply
              0
              • K Kasi Viswanathan

                Arif patel wrote:

                Autopostback property=True of Dropdownlist1

                It will refresh the page...Which Venky dosen't want

                A Offline
                A Offline
                Arif patel
                wrote on last edited by
                #7

                Hi kasi, Another way is using javascript. 1. create a dropdown list using javascript 2. From selected item of dropdownlist1 load items into the dropdownlist2. To create a dropdown list in JavaScript you can use the following code:

                Select a page JavaScript FAQ Numbers Strings Navigation Colors JavaScripter.net

                Just change the menu items and the corresponding URLs to whatever you want. You can use absolute URLs (like http://www.javascripter.net) as well as relative URLs (like mypage.htm). for loading items in dropdownlist2 the code must be written in load event of that page...... Hope this idea will work..... Regards, Syed Arif.

                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