Hi, I am trying to implement a nested repeater as described in an article from c# corner:
However, when I run the code I get an error: Object reference not set to an instance of an object.
this error occurs when the "detail" repeater is trying to databind itself to the relationship created in the onpageload event. The error is raised on the following line:
Has anyone experienced this problem before?
Cheers
James.
However, when I run the code I get an error: Object reference not set to an instance of an object.
this error occurs when the "detail" repeater is trying to databind itself to the relationship created in the onpageload event. The error is raised on the following line:
Code:
((Repeater) e.Item.FindControl("tblSelections")).DataSource = ((DataRowView) e.Item.DataItem).CreateChildView("myRelation");
Has anyone experienced this problem before?
Cheers
James.