if (upResume.HasFile == false)
{
// No file uploaded!
msg.Text = "Please first select a file to upload";
}
else
{
// Save the file
string filePath = Server.MapPath("~/resume/" + upResume.FileName);
upResume.SaveAs(filePath);
}
cmdUser.Parameters.Add("@ap_attachresume", SqlDbType.NVarChar).Value = upResume.FileName;
cmdUser.ExecuteNonQuery();
ap_id = (int)cmdUser.Parameters["@ap_id"].Value;
}
Hi, above is my coding to upload file.I have 2 pages that need to store the file which is Registration pageand update page. So I am using above code to store into database in registration page and it is successful. But when i go to update pageand want to remain the same file, unfortunately the file is gone.So, my problem is how to remain the same file and keep into database withoutupload another file? I hope u can help me or give me some suggestion.Thank you.