protected void ddlIdioma_SelectedIndexChanged(object sender, EventArgs e)
    {
        IdIdioma = Convert.ToInt32(ddlIdioma.SelectedValue);

        gobjModContato = DOModContato.Obter(IdConteudo, IdIdioma);
        CarregarObjetos(Utilitarios.TipoTransacao.Carregar);
    }
    protected void btnSalvar_Click(object sender, EventArgs e)
    {
        try
        {
            CarregarObjetos(Utilitarios.TipoTransacao.Salvar);

            DOModContato.Inserir(gobjModContato);

            ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "refreshParent();", true);
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
    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);
                }

                gobjModContato = DOModContato.Obter(IdConteudo, IdIdioma);
                CarregarObjetos(Utilitarios.TipoTransacao.Carregar);
            }
            this.IniciaTela();
        }
    }
    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);
        }

        gobjModContato = DOModContato.Obter(IdConteudo, IdIdioma);

        if (!String.IsNullOrWhiteSpace(gobjModContato.Assuntos) && !(String.IsNullOrWhiteSpace(gobjModContato.EmailTo)))
        {
            string[] strAssuntos = gobjModContato.Assuntos.Split(';');

            foreach (string strAssunto in strAssuntos)
            {
                if (!String.IsNullOrWhiteSpace(strAssunto))
                {
                    ddlAssuntos.Items.Add(new ListItem(strAssunto, strAssunto));
                }
            }
            ddlAssuntos.Items.Insert(0, new ListItem(Resources.Textos.Texto_Selecione, "0"));

            divSemConteudo.Visible = false;
            divConteudo.Visible    = true;
        }
        else
        {
            divSemConteudo.Visible = true;
            divConteudo.Visible    = false;
        }
    }