protected void Button_Resolved_Email_Body_Click(object sender, EventArgs e) { Dictionary <String, String> whereCls = new Dictionary <string, string>(); Dictionary <String, String> targetVals = new Dictionary <string, string>(); whereCls.Add(MainBusinessEntity.MAIN_BUSINESS_COL_BUSINESS_ID, Session[SessionFactory.MAIN_BUSINESS_ENTITY_ID_STRING].ToString()); targetVals.Add(MainBusinessEntity.MAIN_BUSINESS_COL_SR_RESOLVED_BODY, TextBox_Resolved_Defect_Email.Text.Trim()); try { MainBusinessEntity.updateMainBusinessEntityWOimg_prd_user_subDB(targetVals, whereCls, DBConn.Connections.OPERATION_UPDATE); Label_Email_Stat.Visible = true; Label_Email_Stat.Text = "Email details updated successfully"; Label_Email_Stat.ForeColor = System.Drawing.Color.Green; } catch (Exception ex) { Label_Email_Stat.Visible = true; Label_Email_Stat.Text = "Email details update failed"; Label_Email_Stat.ForeColor = System.Drawing.Color.Red; } }
protected void Button_Add_Email_Click(object sender, EventArgs e) { Dictionary <String, String> whereCls = new Dictionary <String, String>(); Dictionary <String, String> targetVals = new Dictionary <string, string>(); whereCls.Add(MainBusinessEntity.MAIN_BUSINESS_COL_BUSINESS_ID, Session[SessionFactory.MAIN_BUSINESS_ENTITY_ID_STRING].ToString()); targetVals.Add(MainBusinessEntity.MAIN_BUSINESS_COL_SUPPORT_EMAIL, TextBox_Alert_Email.Text); targetVals.Add(MainBusinessEntity.MAIN_BUSINESS_COL_SUPPORT_PASS, TextBox_Alert_Pass.Text); try { MainBusinessEntity.updateMainBusinessEntityWOimg_prd_user_subDB(targetVals, whereCls, DBConn.Connections.OPERATION_UPDATE); Label_Email_Stat.Text = "Support email details updated successfully. This email id will be used to send auto alerts to clients"; Label_Email_Stat.ForeColor = System.Drawing.Color.Green; Label_Email_Stat.Visible = true; } catch (Exception ex) { Label_Email_Stat.Text = "Update Failed"; Label_Email_Stat.ForeColor = System.Drawing.Color.Red; Label_Email_Stat.Visible = true; } }