I have a datalist and in his header template I have linkbutton.In my codebehind file, which I wrote, as I always wrote:
((LinkButton)(DataList1.FindControl("LinkButton1"))).Enabled = false;
but this gives me an error:
The reference to the object is not installed in the instance of the object.
How can I access this link?
source
share