Here's a simple script to list all the files in a given directory. It illustrates accessing file information as well as databinding because it displays the results in an DataGrid web control.
Here's a zip file of the code (800 bytes).
Play with the running version.
View the live source code.
Back to the "Directory List" sample