Accessing the controls in the PagerTemplate when using FormView
I am using a FormView control, and want to access the controls I have
created in the PagerTemplate. Right now, I am doing this using the following
CType(Me.FormViewID.FindControl("PagerTemplateCont rolID"), LinkButton)
However, this gives me the following error:
Object reference not set to an instance of an object.
I am trying to access these controls in the Load event, and I think that
that is why I am having the problem. However, I am not sure how to fix the
problem. I would appreciate any help that anyone can give. Thanks.
|All times are GMT. The time now is 04:29 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.