Results 1 to 3 of 3

Thread: Why list box does not work

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120

    Why list box does not work

    I set my list box multiple choice option = true, but why this code is not working.
    I insert two fields in the listbox.
    <P>request.form("select1")(0)<P/>
    I got error message: index is out of range.
    Can someone explain???
    MM

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Angry

    Could you send me your asp page so that I can check the code that you have written?

    abhijit
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    First off, make sure you are enclosing that Request.Form part in <% and %>. (Dunno if you just ommitted them here or not)

    If only one item is SELECTED, it will be a single item and not a collection item.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width