DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Theresa Guest

    Populating drop-down based on 1st drop-down selection


    I have two lists (drop-down boxes) where the second list depends on the value
    of the first list. Does anyone know an easy way to do this? For example,
    if the first drop-down contains a list of clients, when the user picks the
    client the second drop-down will be populated with the user id's for that
    client.

  2. #2
    Randy Harrison Guest

    Re: Populating drop-down based on 1st drop-down selection


    "Theresa" <theresa.delrosario@stuckynet.com> wrote:
    >
    >I have two lists (drop-down boxes) where the second list depends on the

    value
    >of the first list. Does anyone know an easy way to do this? For example,
    >if the first drop-down contains a list of clients, when the user picks the
    >client the second drop-down will be populated with the user id's for that
    >client.

    From what I have been seeing in ASP pages is to have one drop down on one
    page and when a selection is made a second asp with the results in another
    drop-down.

    Randy


  3. #3
    Avron Polakow Guest

    Re: Populating drop-down based on 1st drop-down selection

    Check the attachment to see how this can be done in javascript.

    If you need to go back to the server to populate the second dropdown set up
    a second frame which is hrefed to the asp with a parameter from the first
    dropdown.

    Theresa wrote:

    > I have two lists (drop-down boxes) where the second list depends on the value
    > of the first list. Does anyone know an easy way to do this? For example,
    > if the first drop-down contains a list of clients, when the user picks the
    > client the second drop-down will be populated with the user id's for that
    > client.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links