CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Set listbox selected items from Session variable

Print topic Send  topic

Author Message
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?

View profile  Send private message
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
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.