I am using Visual Studio 2008 SP1, ASP.NET, and VB.NET.
I am using a wizard, and in order to affect the controls inside it, I have to declare them in each method like so:
Dim txtbox1 As TextBox = wizard.ContentTemplateContainer.FindControl("textbox1")
Which works fine, but sometimes I need to access that same control across different methods, thereby requiring me to declare it for each one individually.
Making my question:
Is there a way to declare each control like that once, for the entire codebehind page/class?