Access Control inside GridView Pager Template - ASP.NET

Posted by NullReference on Stack Overflow See other posts from Stack Overflow or by NullReference
Published on 2010-01-06T16:10:59Z Indexed on 2010/04/20 9:43 UTC
Read the original article Hit count: 261

Hi,

I am trying to access a LinkButton that is inside a PagerTemplate in a GridView.

However, I am getting a NullReferenceException and I don't know what I am doing wrong here.

I have tried the following...

((LinkButton)GridView1.BottomPagerRow.FindControl("lnkbtnPrevious"));
((LinkButton)GridView1.FindControl("lnkbtnPrevious"));

Can someone please help?

Thanks!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview