void PostExpenses_byDate_Categorized() { try { string start = txtstartdate.Text + " 12:00:01 AM"; string end = txtenddate.Text + " 11:59:00 PM"; GridView1.DataSource = ClassDataManager.view_Expenses_Categorized_bydate(double.Parse(lblRecordsID.Text), start, end); GridView1.DataBind(); } catch (Exception) { //throw; Response.Redirect("Login.aspx"); } }