DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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

    dynamic listboxes


    How can I change the data in a listbox on a form, which is based on radio
    buttons ? For example, I have 2 radio buttons, one is HARDWARE and one is
    SOFTWARE. When you click on the HARDWARE button I want to load the listbox
    w/ data from the hardware table, and conversly, if you click the SOFTWARE
    button I want to load the listbox w/ data from the software table.

    Any ideas ??

  2. #2
    Patrick Steele Guest

    Re: dynamic listboxes

    In article <3a4a46c4$1@news.devx.com>, amiller@commercewest.net says...
    >
    > How can I change the data in a listbox on a form, which is based on radio
    > buttons ? For example, I have 2 radio buttons, one is HARDWARE and one is
    > SOFTWARE. When you click on the HARDWARE button I want to load the listbox
    > w/ data from the hardware table, and conversly, if you click the SOFTWARE
    > button I want to load the listbox w/ data from the software table.
    >
    > Any ideas ??
    >


    Is the data going to exist on the server? Do you need to run a query on
    the server to get the data, or will all of it be sent down inside a
    hidden textarea or something?

    --
    Patrick Steele
    (patrick@movingtovb.net)
    Microsoft MCP

  3. #3
    Russell Jones Guest

    Re: dynamic listboxes

    I can think of several ways. If you're a DevX Premier member, my VBPJ
    article "Solving the Dependent Listbox Problem" on DevX
    (http://www.devx.com/premier/mgznarch...200/id0200.asp)
    should help. If not, you can read at
    http://msdn.microsoft.com/library/pe...dependent.htm.
    Basically, the article discusses using XML to alter the content in one list
    based on a user selection in another list, which is very close to your
    problem.

    A. Russell Jones
    Sr. Web Development Editor, DevX.com

    "aaron" <amiller@commercewest.net> wrote in message
    news:3a4a46c4$1@news.devx.com...
    >
    > How can I change the data in a listbox on a form, which is based on radio
    > buttons ? For example, I have 2 radio buttons, one is HARDWARE and one is
    > SOFTWARE. When you click on the HARDWARE button I want to load the

    listbox
    > w/ data from the hardware table, and conversly, if you click the SOFTWARE
    > button I want to load the listbox w/ data from the software table.
    >
    > Any ideas ??




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