Use below StartUpload() Method
private void StartUpLoad()
{
string username = (string)(Session["UserAuthentication"]);
int imgSize = FileUpload1.PostedFile.ContentLength;
if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "")
{
if (FileUpload1.PostedFile.ContentLength > 1024000)
{
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('File is too big.')", true);
}
else
{
string[] splitter = FileUpload1.PostedFile.FileName.Split('.');
string filePath = "Images/" + username +"." + splitter[1].ToString();
FileUpload1.SaveAs(Server.MapPath(filePath));
Image1.ImageUrl = "~/" + filePath;
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('Image saved!')", true);
}
}