Populating Drop Downs with Files

Results 1 to 3 of 3

Thread: Populating Drop Downs with Files

  1. #1
    Ian Dickens Guest

    Default Populating Drop Downs with Files

    Help! This may be easy - but I cant get it!<BR><BR>I need to populate a dropdown box with a list of files in a single folder, any ideas anyone?

  2. #2
    Join Date
    Dec 1969

    Default RE: Populating Drop Downs with Files

    Hi, <BR><BR>Try it at http://www.aspfree.com , they have some good examples there ...

  3. #3
    Ritesh Guest

    Default Here is a sample script

    set fs = server.CreateObject("Scripting.FileSystemObject")< BR>set file = fs.OpenTextFile("C:filepathfilename")<BR>do while not file.AtEndOfStream<BR>t = file.readline<BR><BR>val_combo = part of line you need to put in combo<BR>//you will have to customize this one.<BR><BR><BR>Response.Write "&#060;option value=" & val_combo& "&#062;" & val_combo & "&#060;/option&#062;"<BR>loop<BR><BR>set fs = nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts