Exemplo n.º 1
0
        protected void btnShow_Click(object sender, EventArgs e)
        {
            //DateTime date = new DateTime(Convert.ToInt32(ddlYear.SelectedValue), Convert.ToInt32(dllMonth.SelectedValue), 1);
            DateTime from = Convert.ToDateTime(tbFrom.Text);
            DateTime to   = Convert.ToDateTime(tbTo.Text);

            using (ClubDBEntities club = new ClubDBEntities())
            {
                var result = club.getBankStatemnet(from, to);
                gvIncome.DataSource = result;
                gvIncome.DataBind();
                pnlData.Visible = true;
            }
        }