Hi,
following is my code for display crystal report.
I want to display only a particular report based on the condition.
ie I want to display only one record.but when i run run ,all records are showing .condition is not working.
what i have to do.
Regards
K L BAIJU
protected void Button1_Click(object sender, EventArgs e)
{
SqlDataAdapter da = new SqlDataAdapter("select * from customers where customerid='" + TextBox1.Text + "'", con);
DataSet ds = new DataSet();
da.Fill(ds);
ReportDocument report = new ReportDocument();
string reportpath = Server.MapPath("CrystalReport5.rpt");
report.Load(reportpath);
report.SetDataSource(ds);
CrystalReportViewer1.ReportSource = report;
}