Try that on for size mate.. let me know if it swhat you rlooking for. Basically I create an ASP array of all the values in your CSV string.. and then I loop through the array and make a javascript array. Through Javascript you can easily compare the values in the select box and the array and check to see if the values are in there and select them if they are.

This was a fun one ^_^ made me use a lil bit of creativity.. probably not the most efficient since im kinda wasting an ASP array.. but it's the only thing I could think of.. I bet someone else will have somethinga little more ingenious to offer!

Ohh try to use this function instead to make it more efficient and faster... I forgot to put "exit for" if there is a match...

<%
Function setSelect(a,b)
arrayRequest = Split(b,",")
for i = LBound(arrayRequest) to UBound(arrayRequest)
if trim(a) = trim(arrayRequest(i)) then
setSelect = "selected"
exit for
end if
next
end function
%>

One more point - The code I gave above works well with multiple select listboxes as well. And it is good for even listboxes with hundreds of entries efficiently as processing is done on the client side.

I recently decide that I needed a way to make my pages scream on the net. While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests."
I got to thinking, hey, I use more than one…

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :)
To start, I want to make sure everyone understands the importance of utilizing p…

With just a little bit of SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form. If you have never written code or looked at an SQL statement before, no problem! ... give i…

There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…