protected void ddlIdioma_SelectedIndexChanged(object sender, EventArgs e) { IdIdioma = Convert.ToInt32(ddlIdioma.SelectedValue); gobjModTexto = DOModTexto.Obter(IdConteudo, IdIdioma); CarregarObjetos(Utilitarios.TipoTransacao.Carregar); }
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); } ModTexto objModtexto = DOModTexto.Obter(IdConteudo, IdIdioma); if (!string.IsNullOrWhiteSpace(objModtexto.Conteudo)) { litConteudoHtml.Text = objModtexto.Conteudo; divSemConteudo.Visible = false; divConteudo.Visible = true; } else { divSemConteudo.Visible = true; divConteudo.Visible = false; litConteudoHtml.Text = string.Empty; } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["conteudoId"] != null) { IdConteudo = Convert.ToInt32(Request.QueryString["conteudoId"]); HttpCookie cookie = Request.Cookies["_culture"]; if (cookie != null) { IdIdioma = Convert.ToInt32(cookie.Value); } gobjModTexto = DOModTexto.Obter(IdConteudo, IdIdioma); CarregarObjetos(Utilitarios.TipoTransacao.Carregar); } this.IniciaTela(); } }