Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();

            ds.ReadXml(Server.MapPath("~/Dados/ControleTarefas.xml"));

            TabelaTarefa.DataSource = ds.Tables[0];

            TabelaTarefa.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            controller = new TarefaController();

            lista = controller.ListarTudo();

            if (!this.IsPostBack)
            {
                AlertarTarefasAtrasadas();
            }

            TabelaTarefa.DataSource = lista;

            TabelaTarefa.DataBind();
        }