View previous topic :: View next topic |
Author |
Message |
robert
Joined: 25 Oct 2004 Posts: 3
|
Posted: Fri Nov 19, 2004 3:54 pm Post subject: Populate dropdown list from a comma delimited text file |
|
|
I have an ASP page and I want to populate a dropdown list from a comma delimited text file. Please post a sample how to do that if you have one?
Robert |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Fri Nov 19, 2004 10:19 pm Post subject: |
|
|
Hi Robert,
Open the text file, read the line with the values into a variable in your ASP page. The use the VBScript Split function to split the list into array, and then just loop through the array and add the options to your dropdown.
Cheers, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|