public void ExpenseGridBind() { int userId = Convert.ToInt32(Session["Id"]); bool isdeleted = false; ExpenseGrid.DataSource = receiptBusiness.expenseGridBind(userId, isdeleted); ExpenseGrid.DataBind(); }
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; }