All you have to do is provide the interface for the upload, in the same way you would do with ASP--the tag corresponds in ASP.NET to a server-side System.Web.UI.HtmlControls.HtmlInputFile control, which is rendered in HTML in exactly the same way. Then, in your code-behind page, use something like the following intuitive code:
Protected Sub UploadButton_OnClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles UploadButton.Click
Dim FileUpload As HttpPostedFile
Dim UploadedFileName As String
'Get the file from the HtmlInputFile control
FileUpload = UploadInterface.PostedFile
If Not UploadInterface.PostedFile Is Nothing Then
'Get just the filename (without the client path)
UploadedFileName =
FileUpload.FileName.Substring(FileUpload.FileName.LastIndexOf("\"))
'Save it in a safe place on the server
UploadInterface.PostedFile.SaveAs("c:\temp\" & UploadedFileName)
End If
End Sub