Repopulate List box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christer Alkerud

    Repopulate List box

    Hi



    I hope anyone can give me a hint how to continue



    I have an ASP page containing 3 list boxes. When the page is opened the list
    boxes are populated with some default values from a database and an array on
    the page is also populated with values from the same database.



    Depending on the choice in the first list box I want to repopulate the
    second list box with values from the array depending on the choice in the
    first list box



    Any Suggestion



  • Jeff Cochran

    #2
    Re: Repopulate List box

    On Mon, 15 Nov 2004 13:51:20 GMT, "Christer Alkerud"
    <calkerud@hotma il.com> wrote:
    [color=blue]
    >I have an ASP page containing 3 list boxes. When the page is opened the list
    >boxes are populated with some default values from a database and an array on
    >the page is also populated with values from the same database.[/color]
    [color=blue]
    >Depending on the choice in the first list box I want to repopulate the
    >second list box with values from the array depending on the choice in the
    >first list box[/color]

    Client side it's DHTML or JavaScript, using ASP it's a new query to
    the server based on a JavaScript trigger of the selection. Google
    "ASP Dynamic Dropdown Lists" or the like for lots of examples.

    Jeff

    Comment

    • Hal Rosser

      #3
      Re: Repopulate List box


      "Christer Alkerud" <calkerud@hotma il.com> wrote in message
      news:sv2md.8810 $d5.75845@newsb .telia.net...[color=blue]
      > Hi
      >
      >
      >
      > I hope anyone can give me a hint how to continue
      >
      >
      >
      > I have an ASP page containing 3 list boxes. When the page is opened the[/color]
      list[color=blue]
      > boxes are populated with some default values from a database and an array[/color]
      on[color=blue]
      > the page is also populated with values from the same database.
      >
      >
      >
      > Depending on the choice in the first list box I want to repopulate the
      > second list box with values from the array depending on the choice in the
      > first list box
      >
      >
      >
      > Any Suggestion
      >[/color]

      You can submit back to the same page - but you'll have to code it so that if
      no querystring then put in the default values, otherwise put in based on
      user's choices.



      ---
      Outgoing mail is certified Virus Free.
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004


      Comment

      Working...