An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Line 80: FUResume.SaveAs(Server.MapPath("~/Resume/" + FUResume.FileName.ToString())); Line 81: string resume = "~/Resume/" + FUResume.FileName.ToString(); Line 82: int ist = EAdapter.Insert(Convert.ToInt32(Session["SID"].ToString()), txtclgname.Text, txtErlno.Text, drpsem.SelectedItem.Text, drpEdu.SelectedItem.Text, drpBranch.SelectedItem.Text, drpPassyear.SelectedItem.Text, Convert.ToDouble(txtCGPA.Text),drpreqskill.SelectedItem.Text, txtExSkill.Text, resume); Line 83: Line 84: if (ist == 1)
if (FUResume.HasFile) { FUResume.SaveAs(Server.MapPath("~/Resume/" + FUResume.FileName.ToString())); string resume = "~/Resume/" + FUResume.FileName.ToString(); int ist = EAdapter.Insert(Convert.ToInt32(Session["SID"].ToString()), txtclgname.Text, txtErlno.Text, drpsem.SelectedItem.Text, drpEdu.SelectedItem.Text, drpBranch.SelectedItem.Text, drpPassyear.SelectedItem.Text, Convert.ToDouble(txtCGPA.Text),drpreqskill.SelectedItem.Text, txtExSkill.Text, resume); if (ist == 1) { lblmsg.Text = "Add successfully.."; clean(); Response.Redirect("Home.aspx"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)