コード例 #1
0
        public void ExpenseGridBind()
        {
            int  userId    = Convert.ToInt32(Session["Id"]);
            bool isdeleted = false;

            ExpenseGrid.DataSource = receiptBusiness.expenseGridBind(userId, isdeleted);
            ExpenseGrid.DataBind();
        }
コード例 #2
0
 protected void drpExpenseType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Convert.ToInt32(drpExpenseType.SelectedValue) != 0)
     {
         ExpenseGrid.DataSource = receiptBusiness.viewExpenseType(Convert.ToInt32(Session["Id"]), Convert.ToInt32(drpExpenseType.SelectedValue));
         ExpenseGrid.DataBind();
     }
     drpExpenseType.SelectedIndex = 0;
 }