I want to Upload File but on Click if i chose the browze file and then click it displays \[code\]Page not found error\[/code\] I want to Upload File but on Click if i chose the browze file and then click it displays Page not found error but when i click the upload button without choosing a file it redirect me to the page and throughs exception \[code\]could not find a part of a path\[/code\] In Asp.net C#\[code\]protected void UploadFile_Click(object sender, EventArgs e) { if (!FileUpload1.HasFile) { string path = string.Concat(Server.MapPath("~/ExcelSheets/" + FileUpload1.FileName)); FileUpload1.SaveAs(path); } }\[/code\]