Findcontrol Within a Gridview Footer template
Posted on 2006-11-29
Ah! Mega Urgent!
I am trying to locate a Label within a footer template of a Gridview and am using the following code to do so but get the error 'Object reference not set to an instance of an object'...
Code-Behind Code within an button OnClick event:
Dim lblRec As Label = GridView1.FindControl("lblRecTonT")
Could anyone kindly advise what I could be doing wrong?