Hi,
I am try to assign string value to repeater control but it gives error Object refernce not set to an insant of object.
Below is my code
foreach (DataRow dRow in dt_OwnerFilter.Rows)
{
if (dt_OwnerFilter.Rows.Count > 0)
{
string htmlcode = "";
htmlcode = " " + i + "";
Label status = (Label)b.NamingContainer.FindControl("lbldata");
status.Text += htmlcode + "
"; //Here is error
"; //Here is error
}
i = i + 1;
}
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Gautam ParmarPosted Nov 17, 2017, 7:41 AM