Posted on: 2/13/2015 3:59:48 AM | Views : 528

Hey,
I wanted to generate a report (GenReport.aspx) containing the list of GridView items filtered from the entered data from report.aspx. When I was debugging, it gives me an error that says the object is not referenced.
GenReport.aspx.cs
protected void Page_Load(object sender, EventArgs e) { Label StatusLbl = (Label)FormView1.FindControl("StatusLbl"); Label nameLbl = (Label)FormView1.FindControl("nameLbl"); Label designationLbl = (Label)FormView1.FindControl("designationLbl"); Label OfficeLbl = (Label)FormView1.FindControl("OfficeLbl"); Label FloorLbl = (Label)FormView1.FindControl("FloorLbl"); Label DeptLbl = (Label)FormView1.FindControl("DeptLbl"); Label ProjectLbl = (Label)FormView1.FindControl("ProjectLbl"); Label emailDiversionLbl = (Label)FormView ...

Go to the complete details ...