M
MRW
Hello!
On one of my pages, I have many functions that are accessing a GridView
within a FormView. In all these functions, I have to state:
Dim GV_PhoneNumbers As GridView =
FV_Customer.Row.FindControl("GV_PhoneNumbers")
FV_Customer being the the FormView
GV_PhoneNumbers being the GridView
Is there a way I can define GV_PhoneNumbers only once in the page, so I
don't constantly have to redifine it? This also affects a function
that I have, where I wish to add "Handles GV_PhoneNumbers.DataBound",
however, since GV_PhoneNumbers hasn't been defined yet, it won't work.
Any help would greatly be appreciated!
On one of my pages, I have many functions that are accessing a GridView
within a FormView. In all these functions, I have to state:
Dim GV_PhoneNumbers As GridView =
FV_Customer.Row.FindControl("GV_PhoneNumbers")
FV_Customer being the the FormView
GV_PhoneNumbers being the GridView
Is there a way I can define GV_PhoneNumbers only once in the page, so I
don't constantly have to redifine it? This also affects a function
that I have, where I wish to add "Handles GV_PhoneNumbers.DataBound",
however, since GV_PhoneNumbers hasn't been defined yet, it won't work.
Any help would greatly be appreciated!