Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Accessing the controls in the PagerTemplate when using FormView

Reply
Thread Tools

Accessing the controls in the PagerTemplate when using FormView

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      01-11-2007
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
method:


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.
--
Nathan Sokalski
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically modifying the controls in FormView's PagerTemplate Nathan Sokalski ASP .Net 2 01-15-2007 02:07 AM
Programmatically modifying the controls in FormView's PagerTemplate Nathan Sokalski ASP .Net Web Controls 1 01-15-2007 02:07 AM
Programmatically modifying the controls in FormView's PagerTemplate Nathan Sokalski ASP .Net Datagrid Control 1 01-15-2007 02:07 AM
Accessing the controls in the PagerTemplate when using FormView Nathan Sokalski ASP .Net 0 01-11-2007 06:19 AM
Accessing the controls in the PagerTemplate when using FormView Nathan Sokalski ASP .Net Web Controls 0 01-11-2007 06:19 AM



Advertisments