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

 how do you add your own asp code

Print topic Send  topic

Author Message
raymondbell@hotmail.com
Posted: 10/15/2002, 6:26 AM

This is a great application but how do you add your own asp code to a page. The code i am trying to add gets a list of images from a folder and populates a listbox with the results. When i add it to the html the asp code isn't processed.

Here is the code i'm tring to get working.It is working as i've tried it outside CC.

<select name="loc_image">
<option value="">Please Select an image</option>
<%
dim fso, f, path, files, s1, file
path = "c:\temp\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(path)
set files = f.files
For Each file in files
s1=file.name
response.write " <option "
response.write s1
response.write "> "
response.write s1
response.write vbcrlf
Next
Set files = Nothing
Set f = Nothing
Set fso = Nothing
response.write "</select>" & vbcrlf
%>
angelo-g@libero.it
Posted: 10/16/2002, 12:48 AM

You can it selecting Modules e choosing 'Global Functions' and 'ASP' from the listboxes ...

I do so with PHP and work very well

ray
Posted: 10/16/2002, 5:08 AM

Can you explain it in more detail. I want to add the asp code to the page so that it will bring back a list of files in a folder. Do i put the code in events or where exactly do i put the code. All help would be most appreciated.

Thanks.
Ray.

   


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.