Try This :
take both date value in to QueryString as:
string from_date = Request.QueryString["fromdate"];
string to_date = Request.QueryString["todate"];
import these namespace first :
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.Reporting;
declare variable like :
ReportDocument cr;
then apply query :
protected void Page_Init(object sender, EventArgs e)
{
String data = "SELECT * from table name where from_date>='"+from_date+"' and to_date<='"+to_date+"';
SqlDataAdapter ad1 = new SqlDataAdapter(data, connection object);
DataSet ds1 = new DataSet();
ad1.Fill(ds1);
path = Server.MapPath("Reportname");
cr = new ReportDocument();
cr.Load(path);
cr.SetDataSource(ds1.Tables[0]);
CrystalReportViewer1.ReportSource = cr;
}
if any problem you get, please post it...