LinkButton in a DataList
Posted
by erasmus
on Stack Overflow
See other posts from Stack Overflow
or by erasmus
Published on 2010-03-10T19:16:01Z
Indexed on
2010/03/11
18:09 UTC
Read the original article
Hit count: 521
I have a datalist and in its header template I have a linkbutton.In my codebehind file I wrote as I've always written:
((LinkButton)(DataList1.FindControl("LinkButton1"))).Enabled = false;
but this gives me the error:
Object reference not set to an instance of an object.
How can I access this linkbutton?
© Stack Overflow or respective owner