示例#1
0
        /*Over Due Actions*/
        protected void btnOverdueAction_Click(object sender, EventArgs e)
        {
            PlaceHolder1.Visible = false;
            PlaceHolder2.Visible = false;
            PlaceHolder3.Visible = false;

            MemberLogic ml          = new MemberLogic();
            DataTable   tblOverdues = null;

            if (ddlOverdues.SelectedValue.Equals("Unpaid"))
            {
                PlaceHolder2.Visible = true;
                tblOverdues          = ml.GetUnpaidOverdues((int)Session["User_Id"]);
            }
            else if (ddlOverdues.SelectedValue.Equals("History"))
            {
                PlaceHolder2.Visible = false;
                tblOverdues          = ml.GetAllOverdues((int)Session["User_Id"]);
            }

            GridView1.DataSource = tblOverdues;
            GridView1.DataBind();
        }