Hi
The below code it has three main parts, first check if the UploadFiles has file or not the 2nd is if all files are jpg or png the last one is if there is no files then update others columns. what is happening checking when the files into UploadsFiles are
not jpg or png i get this message: ExecuteNonQuery: Connection property has not been initialized. only when the files are not jpg or png other wise every thing is going fine.
protected void editHPPersInfobtn_Click(object sender, EventArgs e)
{
SqlConnection EdPersInfoCon = new SqlConnection(sc);
SqlCommand EditUsrInfoCMD = new SqlCommand();
var UsrNme = Session["UsrNme"];
string FileExtentiona = System.IO.Path.GetExtension(EditImgFUP.FileName);
string FileExtentiona2 = System.IO.Path.GetExtension(EditPersInfologoFileUp.FileName);
string FileExtentiona3 = System.I ...
Go to the complete details ...