System.Web.HttpServerUtility.HtmlDecode C# (CSharp) Method

HtmlDecode() public method

public HtmlDecode ( string s ) : string
s string
return string
		public string HtmlDecode (string s)
		{
			return HttpUtility.HtmlDecode (s);
		}

Same methods

HttpServerUtility::HtmlDecode ( string s, TextWriter output ) : void

Usage Example

        /// <summary>
        /// procedimiento que inicia la pagina correspondiente al diseno de la planilla
        /// </summary>
        public void PageLoad(HttpRequest request, bool hit, HttpServerUtility server)
        {
            DominioSKD.Entidades.Modulo14.Planilla pla =
                (DominioSKD.Entidades.Modulo14.Planilla)FabricaEntidades.ObtenerPlanilla();
            try
            {
                if (request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieId].ToString() != "")
                {
                    idPlanilla = Convert.ToInt32(request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieId]);
                    pla.ID = idPlanilla;
                    vista.tipoPlanilla.Text = request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieTipo].ToString();
                    vista.planilla.Text = request.Cookies[RecursosPresentadorModulo14.CookiePlanilla][RecursosPresentadorModulo14.CookieNombre].ToString();
                    ComandoConsultarDiseñoPuro commando =
                        (ComandoConsultarDiseñoPuro)FabricaComandos.ObtenerComandoConsultarDiseñoPuro();
                    commando.Planilla = pla;
                    dis = commando.Ejecutar();
                    planilla1 = new DominioSKD.Entidades.Modulo14.Planilla(idPlanilla, vista.planilla.Text, true, vista.tipoPlanilla.Text);

                    if (!hit)
                    {
                        ComandoObtenerDatosPlanilla command =
                         (ComandoObtenerDatosPlanilla)FabricaComandos.ObtenerComandoObtenerDatosPlanilla();
                        command.IdPlanilla = idPlanilla;
                        List<String> datos = command.Ejecutar();

                        foreach (string dat in datos)
                        {
                            vista.comboDatos.Items.Add(dat);
                        }
                        vista.camposStatic.Text = RecursosPresentadorModulo14.ParteSuperior;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.DatosPlanilla;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.ParteSuperior;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.FechaCreacionPlanilla;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.FechaRetiro;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.FechaRein;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.Motivo;
                        vista.camposStatic.Text += RecursosPresentadorModulo14.ParteSuperior;
                        llenarCombo();
                        vista.CKEditor1.Text =
                            server.HtmlDecode(((DominioSKD.Entidades.Modulo14.Diseño)dis).Contenido);
                    }
                    request.Cookies[RecursosPresentadorModulo14.CookiePlanilla].Expires = DateTime.Now;
                }
            }
            catch (ExcepcionesSKD.ExceptionSKDConexionBD ex)
            {
                Alerta(ex.Message);
            }
            catch (ExcepcionesSKD.Modulo14.BDDiseñoException ex)
            {
                Alerta(ex.Message);
            }
            catch (ExcepcionesSKD.Modulo14.BDDatosException ex)
            {
                Alerta(ex.Message);
            }
            catch (ExcepcionesSKD.Modulo14.BDPLanillaException ex)
            {
                Alerta(ex.Message);
            }
            catch (ExcepcionesSKD.Modulo14.BDSolicitudException ex)
            {
                Alerta(ex.Message);
            }
            catch (NullReferenceException ex)
            {
                // Alerta(ex.Message);
            }
            catch (Exception ex)
            {
                Alerta(ex.Message);
            }
        }
All Usage Examples Of System.Web.HttpServerUtility::HtmlDecode