private void CarregarDadosDestaque() { try { ddlE1Destaque.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlE1Destaque.SelectedValue.ToString())).ID.ToString(); ddlD1Destaque.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlD1Destaque.SelectedValue.ToString())).ID.ToString(); ddlD2Destaque.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlD2Destaque.SelectedValue.ToString())).ID.ToString(); } catch (Exception ex) { throw ex; } }
private void CarregarObjetosHome() { try { ddlE1.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlE1.SelectedValue.ToString())).ID.ToString(); ddlD1.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlD1.SelectedValue.ToString())).ID.ToString(); ddlD2.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlD2.SelectedValue.ToString())).ID.ToString(); ddlD3.SelectedValue = DOModNoticia.ObterNoticiaModulo(IdConteudo, Convert.ToInt32(ddlD3.SelectedValue.ToString())).ID.ToString(); } catch (Exception ex) { throw; } }