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. dependent 2 select box list - how?

dependent 2 select box list - how?

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

    Hi, I have a static non-dynamic 2 select list box. Example: 1) 2007 2006 2005 2004 2) Jun 2007 May 2007 Apr 2007 Jun 2006 May 2006 Apr 2006 Aug 2005 Jun 2005 May 2005 Sep 2004 May 2004 So i wonder how to create a dependent select list? I want the cboDate to be appear for year that was selected on cboYear. Example: if i select cboYear 2007, i want cboDate to show only 2007 list. Can it be done? Please help. Thx.

    C V 2 Replies Last reply
    0
    • V VinothRao

      Hi, I have a static non-dynamic 2 select list box. Example: 1) 2007 2006 2005 2004 2) Jun 2007 May 2007 Apr 2007 Jun 2006 May 2006 Apr 2006 Aug 2005 Jun 2005 May 2005 Sep 2004 May 2004 So i wonder how to create a dependent select list? I want the cboDate to be appear for year that was selected on cboYear. Example: if i select cboYear 2007, i want cboDate to show only 2007 list. Can it be done? Please help. Thx.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Handle the event when list one's selected index changes, and either through AJAX or a postback, repopulate list two accordingly

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      V 1 Reply Last reply
      0
      • V VinothRao

        Hi, I have a static non-dynamic 2 select list box. Example: 1) 2007 2006 2005 2004 2) Jun 2007 May 2007 Apr 2007 Jun 2006 May 2006 Apr 2006 Aug 2005 Jun 2005 May 2005 Sep 2004 May 2004 So i wonder how to create a dependent select list? I want the cboDate to be appear for year that was selected on cboYear. Example: if i select cboYear 2007, i want cboDate to show only 2007 list. Can it be done? Please help. Thx.

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Check this out http://www.15seconds.com/issue/000831.htm[^]

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

        1 Reply Last reply
        0
        • C Christian Graus

          Handle the event when list one's selected index changes, and either through AJAX or a postback, repopulate list two accordingly

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          V Offline
          V Offline
          VinothRao
          wrote on last edited by
          #4

          thx for reply. BUT if i use a postback, will that refresh the page? If i don't want the page to be refresh is it possible? i using ASP.NET C# code. Thx.

          S 1 Reply Last reply
          0
          • V VinothRao

            thx for reply. BUT if i use a postback, will that refresh the page? If i don't want the page to be refresh is it possible? i using ASP.NET C# code. Thx.

            S Offline
            S Offline
            Sarani Ravindran
            wrote on last edited by
            #5

            Put the dropdownlist in updatepanel so that part of the page will be refreshed. God is always with you.

            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