M
MRW
Hello!
I have a problem, I can't seem to solve.
I'm making a class in my page that will hold the members of a FormView,
so I can access them freely throughout the several functions and
subroutines, without having to redefine them every function/subroutine.
I ran into a problem when trying to define a GridView in that FormView
and I was hoping somebody can help me on this, since I'm going a tad
crazy. Here's part of the code:
---
Partial Public Class FM
Inherits System.Web.UI.Page
Public FV_Customer As FormView
Public GV_PhoneNumbers As GridView =
FV_Customer.FindControl("GV_PhoneNumbers")
---
I keep getting an "Object reference not set to an instance of an
object. " for the GridView. Can anybody help?
Thanks in advance!
I have a problem, I can't seem to solve.
I'm making a class in my page that will hold the members of a FormView,
so I can access them freely throughout the several functions and
subroutines, without having to redefine them every function/subroutine.
I ran into a problem when trying to define a GridView in that FormView
and I was hoping somebody can help me on this, since I'm going a tad
crazy. Here's part of the code:
---
Partial Public Class FM
Inherits System.Web.UI.Page
Public FV_Customer As FormView
Public GV_PhoneNumbers As GridView =
FV_Customer.FindControl("GV_PhoneNumbers")
---
I keep getting an "Object reference not set to an instance of an
object. " for the GridView. Can anybody help?
Thanks in advance!