In WinForms VB.NET you can check if a directory exists, like so If My.Computer.FileSystem.DirectoryExists() but how would I do this in ASP.NET. I have tried as above, but it checks on the “Server” and not the end user that is looking at the website from his/her workplace/home. How would I go about getting a folder that exists on the client’s side?
Thanks in advance.
You can’t do this. Accessing local files from webpages is impossible, and for good reason – it would be a major security risk.