Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: HtmlListBox

$
0
0
Re: HtmlListBox
Web Connection 5.0
Re: HtmlListBox
03/07/2012
01:12:08 AM
3G702KTYM Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
The list box doesn't directly support multiple selections, or at least doesn't support persisting multiple selections.

You can create a listbox that accepts multiple selections though by adding [multiple="multiple"] to the lcAttributes parameter:

<%= HtmlListBox("lstCustomers","","TT_Cust","Trim(Company)",; "Company + [(] + Careof + [)]",[multiple="multiple"],"--- Select a Company") %>

You can then use

DIMENSION laCustomerIds[1] lnCount = Request.GetFormMultiple(@laCustomerIds,"txtCustomers")

to retrieve the items in code.

As mentioned the helper does not support automatic reselection of items.

+++ Rick ---


how to multi select value on HtmlListBox, i have tried hold on the ctrl or shift key to select value but still not working.



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles