Slopey
Posts: 33
|
| Posted: 04/05/2006, 9:46 AM |
|
Hi All,
I'm trying to set the selected items in a listbox (populated from a database table) to the items in a comma delimited list stored in a session variable.
Whats the easiest way to go about this? I've tried
myForm.myListbox.value(Session("my_session_name"))
But to no avail. Where am I going wrong, I can't seem to find anything in the documentation on how to do it?
|
 |
 |
mohamed
|
| Posted: 04/30/2006, 4:34 AM |
|
---------------------------------------
Sent from YesSoftware forum http://forums.codecharge.com/
|
|
|
 |
mohamed
|
| Posted: 04/30/2006, 4:34 AM |
|
I want to joing
|
|
|
 |
Chris__T
Posts: 339
|
| Posted: 05/02/2006, 7:05 AM |
|
You would probably have to use something like CCGetUserID or CCDLookUp
|
 |
 |
WKempees
|
| Posted: 05/02/2006, 2:46 PM |
|
See Tips and Solutions, my tip http://forums.codecharge.com/posts.php?post_id=72211
Your main problem would be that a listbox needs (key,value) pairs to
populate.
So if your sessionvar contains: key,value,key,value and so on
you will have to transform that into an array and feed it to the listbox.
"Slopey" <Slopey@forum.codecharge> schreef in bericht
news:64433f45a05123@news.codecharge.com...
> Hi All,
>
> I'm trying to set the selected items in a listbox (populated from a
> database
> table) to the items in a comma delimited list stored in a session
> variable.
>
> Whats the easiest way to go about this? I've tried
>
> myForm.myListbox.value(Session("my_session_name"))
>
> But to no avail. Where am I going wrong, I can't seem to find anything in
> the
> documentation on how to do it?
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|