private void getDownstreamCalculation2() { blbooking.action = "Downstream"; blbooking.PackageId = ddlPackage.SelectedValue; if (txtfrom.Text != "") { blbooking._dtStartDate = DateTime.Parse(txtfrom.Text); } else { blbooking._dtStartDate = DateTime.Parse("1990/01/01"); } if (txtTo.Text != "") { blbooking._dtEndDate = DateTime.Parse(txtTo.Text); } else { blbooking._dtEndDate = DateTime.Parse("1990/01/01"); } dt2 = dlbooking.getDownstreamCalculation(blbooking); // Session["getdata"] = dt2; if (dt2 != null && dt2.Rows.Count > 0) { } }