The code uploads a file to a specified folder on the web server. The main problem is how to pick the file from the user's local disk, fine. Steps are:
Add file input control on your page.
Add a ASP.NET Server Side TextBox
Important: Please ensure the target folder where the file has to be uploaded has proper rights for the ASP.NET Machine User account.