multiple dropdowns

Discussion in 'ASP .Net' started by NuCoder, Oct 16, 2005.

  1. NuCoder

    NuCoder Guest

    I have a web page that has 4 drop downs for the user to filter a search on.
    They can either select one or all four to do a search, how can I determing
    which drop down was selected to do a search or if all 4 were selected for a
    search?
    NuCoder, Oct 16, 2005
    #1
    1. Advertising

  2. NuCoder,

    Check each drop down's index:

    If MyDropDownList1.SelectedIndex > 0 Then
    '---This dropdown was selected
    End If

    The index of zero is the first element in the drop down. So you should set
    that to something blank like "Select"

    --
    Sincerely,

    S. Justin Gengo, MCP
    Web Developer / Programmer

    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzsche
    "NuCoder" <> wrote in message
    news:%...
    >I have a web page that has 4 drop downs for the user to filter a search on.
    >They can either select one or all four to do a search, how can I determing
    >which drop down was selected to do a search or if all 4 were selected for a
    >search?
    >
    >
    >
    S. Justin Gengo, Oct 16, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KathyB
    Replies:
    6
    Views:
    574
    Todd Thompson
    Jun 27, 2003
  2. Paul

    DropDowns... another one.

    Paul, Jul 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    383
  3. Damon
    Replies:
    4
    Views:
    506
    Corey O'Mara
    Feb 7, 2004
  4. =?Utf-8?B?QW5keQ==?=

    Populating multiple dropdowns

    =?Utf-8?B?QW5keQ==?=, Apr 21, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    435
    Brock Allen
    Apr 21, 2005
  5. MOHAMMED AZEEMUDDIN

    MULTIPLE DROPDOWNS, ASP, VBSCRIPT

    MOHAMMED AZEEMUDDIN, Oct 25, 2003, in forum: ASP General
    Replies:
    1
    Views:
    176
    Bob Barrows
    Oct 25, 2003
Loading...

Share This Page