if ((docUpload.PostedFile != null) && (docUpload.PostedFile.ContentLength > 0))
{
string fn = System.IO.Path.GetFileName(docUpload.PostedFile.FileName);
string saveLocation = Server.MapPath("~/Uploads/") + fn;
try
{
docUpload.PostedFile.SaveAs(saveLocation);
Label1.Text = "File Uploaded Sucessfully";
}
catch (Exception ex)
{
}