CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 List box build from ASP code

Print topic Send  topic

Author Message
John Powell
Posted: 07/30/2002, 4:26 PM

I'm new to CCS (ie: still in the trial period) so I appologize if this is an easy fix. My ignorance shows...

I have several file management snipits of code (ASP) I'm trying to use, one in particular that builds a dropbox with a list of available images from a folder. Is there a way through CCS to implement that drop-down builder, or should I wait til the site is as close to done with CCS as possible and hardcode it in? I know there are various ways/places you can insert custom code, but so far I've not grasped where/how to include/utilize this code.

Much thanks...

John
Adam
Posted: 07/31/2002, 12:06 AM

Not sure if you want to use the existing ListBox control and populate it with custom values, or do you need a custom ListBox (maybe with multi-selectvalues)?
In any case, probably the best way would be to build custom ListBox by placing a Label on the page, then adding "Before Show" event that would replace the Label with the ListBox. Here is the code template:

'=====================================================================
listbox_string = <PLACE YOUR LISTBOX CREATION LOGIC HERE AND BUILD THE HTML STRING FOR THE LISTBOX>
...
EventCaller.<Label>.Value = listbox_string
'=====================================================================

Replace <Label> with the name of your Label.
John Powell
Posted: 07/31/2002, 6:04 AM

Thanks. I'll give it a try in a few days when I get back from a short trip. It's actually a dropbox I'm building... the rountine 'walks' the file directory, building a list of images into the dropbox. The image is either 'selected' (already posted in the db) or the option to upload a new image is given (then 'refresh' the page to repopulate the dropbox so the image can be selected). The code works beautifully on a different site I did. Hoping I can plug it in on CCS instead of having to hardcode in later. Thanks again for the tip.

   


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.