Posted on: 9/16/2015 11:01:54 PM | Views : 783

Hi
I am facing a error with below code as i am trying to test the code by adding .docx file where it suppose to go to part of code as below but i am getting error message which is: ExecuteNonQuery: Connection property has not been initialized. i have tried to move EdPersInfoCon.Open(); to the beginning after declaring new connection but is the same

else { EditPersInfoImgFrmtWarnLbl.Text = "The file should have .png or .jpg format only"; EditPersInfoImgFrmtWarnLbl.ForeColor = System.Drawing.Color.Red; }

protected void editHPPersInfobtn_Click(object sender, EventArgs e) { SqlConnection EdPersInfoCon = new SqlConnection(sc); SqlCommand EditUsrInfoCMD = new SqlCommand(); var UsrNme = Session["Usr ...

Go to the complete details ...