Hi,guys,
can anybody help me?
I tried to set value to the repeater's childcontrol in the Repeater1_ItemDataBound event,but always get "System.NullReferenceException" error.
Code:
Label searchkey = ((Label)e.Item.FindControl("searchkey")) as Label;
searchkey.Text = nestedRec["searchkey"].ToString();
Label count = ((Label)e.Item.FindControl("consultcount")) as Label;
count.Text = nestedRec["consultcount"].ToString();
break;