if (fuUploadResume.PostedFile.ContentLength > 0) { fuUploadResume.SaveAs(Server.MapPath("~/Files/") + filename); if (objcon.State == ConnectionState.Closed) objcon.Open(); SqlCommand command = new SqlCommand("Insert into tm_UserResumes([id],[FileName],[FilePath],[userName]) values(@id,@Name,@Path,@userName)", objcon); command.Parameters.AddWithValue("@id", Class1.EmployeeId); command.Parameters.AddWithValue("@Name", filename); command.Parameters.AddWithValue("@Path", "~/Files/" + filename); { Class1.FileName = filename; Class1.filePath = "~/Files/" + filename; } command.Parameters.AddWithValue("@userName", desiredUName); command.ExecuteNonQuery(); objcon.Close(); BindGridviewData(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)