예제 #1
0
    protected void ddlIdioma_SelectedIndexChanged(object sender, EventArgs e)
    {
        IdIdioma = Convert.ToInt32(ddlIdioma.SelectedValue);

        gobjModFaleConosco = DOModFaleConosco.Obter(IdConteudo, IdIdioma);
        CarregarObjetos(Utilitarios.TipoTransacao.Carregar);
    }
예제 #2
0
    private void ObterConteudo()
    {
        IdConteudo = Convert.ToInt32(this.Parent.ID.Replace("CTT_", string.Empty));
        IdIdioma   = 1;

        HttpCookie cookie = Request.Cookies["_culture"];

        if (cookie != null)
        {
            IdIdioma = Convert.ToInt32(cookie.Value);
        }

        ModFaleConosco objModFaleConosco = DOModFaleConosco.Obter(IdConteudo, IdIdioma);

        if (objModFaleConosco.Assunto != null)
        {
            string[] lstAssunto = objModFaleConosco.Assunto.Split(';');
            Email = objModFaleConosco.Email;

            ddlAssunto.DataSource = lstAssunto;
            ddlAssunto.DataBind();

            divSemConteudo.Visible = false;
            divConteudo.Visible    = true;
        }
        else
        {
            divSemConteudo.Visible = true;
            divConteudo.Visible    = false;
        }
    }
예제 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            this.IniciaTela();

            if (Request.QueryString["conteudoId"] != null)
            {
                IdConteudo = Convert.ToInt32(Request.QueryString["conteudoId"]);

                HttpCookie cookie = Request.Cookies["_culture"];
                if (cookie != null)
                {
                    IdIdioma = Convert.ToInt32(cookie.Value);
                }

                gobjModFaleConosco = DOModFaleConosco.Obter(IdConteudo, IdIdioma);
                CarregarObjetos(Utilitarios.TipoTransacao.Carregar);
            }
        }
    }