Hi,
I have an array - ListOfFiles - that i want use to populate an combo.
I've attempted to do it like this
<select name="txtAvaila ble" rows="4" id="txtAvailabl e">
<Script Language = "vbscript" Runat = "Server">
For i = 0 to Count -1
Response.Write" <OPTION>" & ListOfFiles(i) & "</OPTION>"
next
</script></select>
I placed the vbscript in the approprate place in the body. But when i
open the page instead of writing the HTML where i placed the code, it
has appended it right at the bottom of the page. Does anyone know
where i'm going wrong or if there's a better way of doing this?
Thanks
Luke
I have an array - ListOfFiles - that i want use to populate an combo.
I've attempted to do it like this
<select name="txtAvaila ble" rows="4" id="txtAvailabl e">
<Script Language = "vbscript" Runat = "Server">
For i = 0 to Count -1
Response.Write" <OPTION>" & ListOfFiles(i) & "</OPTION>"
next
</script></select>
I placed the vbscript in the approprate place in the body. But when i
open the page instead of writing the HTML where i placed the code, it
has appended it right at the bottom of the page. Does anyone know
where i'm going wrong or if there's a better way of doing this?
Thanks
Luke
Comment