Are you using "classic" ASP or ASP.NET? If you are using ASP.NET, then I would look to use the
asp:FileUpload
control which renders out to an
<input type="file"
in your HTML. Behind the scenes, this control provides a
FileName
property which can be used to identify the filename.
If you are using "classic" ASP, there's a good example
here[
^] of how to do this.