protected void btn_Search_Click(object sender, EventArgs e)
{
CrystalDecisions.Shared.ParameterField pStart_Date = new CrystalDecisions.Shared.ParameterField();
pStart_Date.Name = "start_Date";
CrystalDecisions.Shared.ParameterDiscreteValue pv_Start_Date = new CrystalDecisions.Shared.ParameterDiscreteValue();
pv_Start_Date.Value = tb_Start_Date.Text.Trim();
pStart_Date.CurrentValues.Add(pv_Start_Date);
CrystalDecisions.Shared.ParameterField pEnd_Date = new CrystalDecisions.Shared.ParameterField();
CrystalDecisions.Shared.ParameterDiscreteValue pv_End_Date = new CrystalDecisions.Shared.ParameterDiscreteValue();
pv_End_Date.Value = tb_End_Date.Text.Trim();
pEnd_Date.Name = "end_Date";
pEnd_Date.CurrentValues.Add(pv_End_Date);
CrystalReportViewer1.ParameterFieldInfo.Add(pStart_Date);
CrystalReportViewer1.ParameterFieldInfo.Add(pEnd_Date);
ds.Emb_Cost.Clear();
DS_Emb_CostTableAdapters.Emb_CostTableAdapter adapter = new DS_Emb_CostTableAdapters.Emb_CostTableAdapter();
adapter.Fill(ds.Emb_Cost, tb_Start_Date.Text.Trim(), tb_End_Date.Text.Trim());
CrystalReportSource1.ReportDocument.SetDataSource(ds);
}