protected void DeleteImage(object sender, EventArgs e) { string path = string.Empty; try { using (Signup objsignup = new Signup()) { // objsignup.ImageID = Convert.ToInt32(idserver_image.Value); if (null != Request.Form["fcheck[]"]) { path = Request.Form["fcheck[]"].ToString().Trim(); } if (path.Trim().Length > 0) { objsignup.ImageIDS = path.Trim(); bool flag = objsignup.DeleteImage(); idserver_image.Value = "0"; ltsignupimages.Text = LoadAllImages(); CommonLib.JavaScriptHandler.RegisterScriptForSM("ShowLoading('N');", true); } } } catch (Exception ex) { CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.Client, "gettyclasses signup uploadimageintemplate deleteimage", ex); } }