protected void ibtnEditReg_Click(object sender, ImageClickEventArgs e) { try { Session["Action"] = ConfigurationTool.Command.Update; //Obtner la fila donde se activo el evento GridViewRow gvRow = (GridViewRow)(sender as ImageButton).Parent.Parent; int rowIndex; rowIndex = gvRow.RowIndex; /*tbCodigo.Enable = false; * tbAlias.Enable = false;*/ pnlEditor.Visible = true; EditHTML(rowIndex); pnlLoad.Visible = false; Utilities.CreateConfirmBox(btnSave, "Esta seguro de realizar cambio?"); //Utilities.CreateConfirmBox(btnSaveAsunto, "Esta seguro de realizar cambio?"); } catch (Exception ex) { TitleSubtitle1.SetSubtitle("Ocurrió un inconveniente"); TitleSubtitle1.SetSubTitleVisible = true; SafetyPad.SetLogRecord("HtmlEditor.aspx.cs", ex.ToString()); } }
protected void btnCancel_Click(object sender, EventArgs e) { try { TitleSubtitle1.SetSubTitleVisible = false; pnlLoad.Visible = true; //CKEdHtml.Text = ""; txtClas.Text = String.Empty; txtDescript.Text = String.Empty; txtType.Text = String.Empty; pnlEditor.Visible = false; } catch (Exception ex) { TitleSubtitle1.SetSubtitle("Ocurrió un inconveniente"); TitleSubtitle1.SetSubTitleVisible = true; SafetyPad.SetLogRecord("HtmlEditor.aspx.cs", ex.ToString()); } }
protected void btnSave_Click(object sender, EventArgs e) { try { //Session["COD_INCIDENCE"] = grvHtml.DataKeys[rowIndex]["COD_HTML_PK"].ToString(); TitleSubtitle1.SetSubTitleVisible = false; HTMLEditor incidence = new HTMLEditor(); string strHtml = txtContenido.Content; //strHtml = strHtml.Replace("&","|||"); //strHtml = "'" + strHtml + "'"; string strDesc = txtDescript.Text; decimal idHtml = Convert.ToDecimal(Session["COD_INCIDENCE"]); string id2 = Convert.ToString(idHtml); int id3 = Convert.ToInt32(id2); //preCKEditorData.InnerText = strHtml; incidence.UpdateHtml(strHtml, strDesc, idHtml); if (incidence.Messages.Status == 1) { wucMessageControl.Title = "Mensaje"; wucMessageControl.Image = "../include/imagenes/info_32.png"; } else { wucMessageControl.Title = "Error"; wucMessageControl.Image = "../include/imagenes/error_32.png"; } wucMessageControl.Message = incidence.Messages.Message; wucMessageControl.ShowPopup(); Fill_gvEmail(ddlClasif.Text, true); pnlEditor.Visible = false; pnlLoad.Visible = true; } catch (Exception ex) { TitleSubtitle1.SetSubtitle("Ocurrió un inconveniente"); TitleSubtitle1.SetSubTitleVisible = true; SafetyPad.SetLogRecord("HtmlEditor.aspx.cs", ex.ToString()); } }
protected void Page_Load(object sender, EventArgs e) { try { TitleSubtitle1.SetSubTitleVisible = false; //CKEdHtml.config.uiColor = "#0099FF"; //"#006666"; /*"#BFEE62";*/ //CKEdHtml.config.allowedContent = true; //CKEdHtml.config.language = "es"; TitleSubtitle1.SetTitle("Administración HTML de Notificaciones"); //Poniendo Título a la página txtClas.Attributes.Add("readonly", "true"); //Declarando controles como de sólo lectura txtType.Attributes.Add("readonly", "true"); if (!IsPostBack) { LoadGrid(); pnlEditor.Visible = false; } } catch (Exception ex) { TitleSubtitle1.SetSubtitle("Ocurrió un inconveniente"); TitleSubtitle1.SetSubTitleVisible = true; SafetyPad.SetLogRecord("HtmlEditor.aspx.cs", ex.ToString()); } }