Getstring and Select Lists

Results 1 to 2 of 2

Thread: Getstring and Select Lists

  1. #1
    Rick Hein Guest

    Default Getstring and Select Lists

    A quick question about GetString. It works great, and I get the selection box I want, EXCEPT, how do I prevent it from giving me a blank selection?<BR>My code looks like this:<BR><BR> strSQLLOB, objConn<BR>Response.Write "&#060;option value=&#039;" <BR>Response.Write objRS.getstring(,,"&#039;&#062;","&#060;/option&#062;&#060;option value=&#039;", "-null-")<BR>Response.Write "&#039;&#062;&#060;/option&#062;"<BR>objRs.close<BR><BR>So my box has <BR>Value1<BR>Value2 .... etc<BR>Blank <BR><BR>If I do it with a loop, I get ONLY those items that are in the Table and no Blank entries. I could of course use client side scripting to force the user to select a valid choice, but I would rather not even give them the chance to select a Blank or Null value. <BR>Thanks.<BR>Rick

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQs (link at top right of this page)

    I wrote an answer to *exactly* that question in the ASPFAQs.<BR><BR>

Posting Permissions

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