I’m trying to read all filenames from a specified (server- not client) folder, and insert all the filenames into a javascript Array.
It should behave like the Directory.GetFiles method in ASP.NET C#.
I created a new array, and I just need the loop method (Javascript or jQuery) to iterate in the specific folder, and insert all the filenames into the array.
Thanks all helpers!
I’m trying to read all filenames from a specified (server- not client) folder, and
Share
You’re going to need to invoke some form of ajax postback to do this on the server, returning an array of strings as a JSON result.
Note that this has the usual caveats that the web server account must have the necessary permissions to be able to query the selected folder.