dependent drop down list

Posted by sushant on Stack Overflow See other posts from Stack Overflow or by sushant
Published on 2010-05-04T06:43:03Z Indexed on 2010/05/04 6:48 UTC
Read the original article Hit count: 192

Filed under:

i want to make a two drop down lists. the first list has static data( folder structure), so i can use an array for it,and depending on the folder or option selected in the first list, the second list shows the sub-folders in it. but the sub-folders keeps on changing, so i have to use asp fso for it. i am using the following fso code:
<%@ Language=VBScript ENABLESESSIONSTATE = False%>

<%

Dim fso, folder, files

Set fso=Server.CreateObject("Scripting.FileSystemObject")

Set folder=fso.GetFolder("D:\")

Set files=folder.SubFolders
For each folderIdx In files

Response.Write("<option>" + folderIdx.Name + "</option>")  

Next

%>

i dont know how to make such a dependent list. any help is really appreciated. and i am sorry for the formatting issue

© Stack Overflow or respective owner

Related posts about asp-classic