HTML Controls ASP.Net Tutorial

<%@ Page Language="C#" %>

void UploadButton_Click(Object sender, EventArgs e) {
    if(FileInput.PostedFile != null)
        {
            try
            {
                FileInput.PostedFile.SaveAs("c:\\test.txt");
            }
            catch (Exception exc)
            {
                Response.Write(exc.Message);
            }
        }
    }