CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 ListOfValues

Print topic Send  topic

Author Message
Geny
Posted: 04/26/2005, 12:42 PM

Hi,

i wanted to know if its possible to retrieve the 'description' value of an item from a listbox (Listbox done with Data Source type = ListOfValues).

I have a listbox with several item where the value are a number that i use to do some arithmetics operations but i need the value i put for 'description' to send in a email.

It is possible?
Thanks
peterr


Posts: 5971
Posted: 04/26/2005, 1:07 PM

Web browsers submit only one value for each listbox, so if you need to use the Id/Number then you cannot use the description. However, you can create the same list of values in ASP, so that if a number is submitted then you can lookup the corresponding text value.
For example: If some_id = 1 Then description = "ABC".
Or for longer lists create a small array, like:
Dim a  
a = Array("ABC", "DEF", "GHI")  
description = a(FormName.ListboxName.Value)  

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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