protected void LinkbtnDados_Click(object sender, EventArgs e) { BlogDAO blogDAO = new BlogDAO(); var list = blogDAO.ObterBlogs(); Class1 NOME = new Class1(); bool retorno = NOME.GRAVAR(ref list); if (retorno) { lblExportado.Visible = true; } blogDAO.Dispose(); }
private void PopularListBlogs() { BlogDAO blogDAO = new BlogDAO(); var list = blogDAO.ObterBlogs(); ddlListaBlogs.DataSource = list; ddlListaBlogs.DataValueField = "id"; ddlListaBlogs.DataTextField = "nome_blog"; ddlListaBlogs.DataBind(); PopularLabelTemaPost(); lblTextoPost.Visible = false; btnIrBlog.Visible = true; TipoUser(); blogDAO.Dispose(); lblBlogExcluido.Visible = false; lblPostCriado.Visible = false; }