|
|
|
|
|
| | |
|
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Have got a listing of directory files(from this site) but not displaying properly in drop down list. |
From: |
Ian Hayes |
Date: |
3/30/1999 9:13:53 PM |
IP: |
203.108.100.109 |
The code below gets a listing of a directory on my server and tries to put
it into a drop down list.
At first I had 3 blanks for the three files in my directory, now I have just
one blank. (I believe that value being set is "filename.value" when I debug
the page)
Any idea's what I'm doing wrong.
As I always offer, a great collection of MP3's , knowledge of Exchange
server or any Apps I can lay my hands on is the reward.
<td width="50%">Document Filename:</td>
<td width="800" valign="top"><!--webbot bot="Validation"
s-display-name="Document Name"
b-disallow-first-item="TRUE" --><select name="Filename" size="1">
<option value="-1" selected>(Select your file. If it does not
appear, check R:\ and
refresh)</option>
<% Set
MyDirectory=Server.CreateObject("Scripting.FileSystemObject")%>
<% Set
MyFiles=MyDirectory.GetFolder(Server.MapPath("/onq/content/management/"))%>
<% For each filefound in MyFiles.files%>
<option value="<% =filefound.Name%>
<% Next %>
</option>
</select><img src="images/smallhelp.gif" alt="Click here for help on
this field" width="22"
height="22" border=0></a></td>
</tr>
<tr>
<td width="100%" colspan="2"></td>
</tr>
<tr>
|
|
|

|
|
|
|
|
|
|
|
|
|