private void button1_Click(object sender, EventArgs e)
{
Employee obj = new Employee(); //Object of Crystal Report
obj.SetParameterValue("p1", int.Parse(textBox1.Text)); //Providing value to crystal report parameter
crystalReportViewer1.ReportSource = obj; //assigning crystal report object to crystal report viewer
}
Note:- zip file enclosed with this post contain a .doc file conatian all procedure in detail.