Hello, I hope this makes sense. What I want to do is setup a Sub Procedure that will contain some the values of control.
For instance, I want to use this only once in a my class and call it where need be.
Dim TopNavBar1 As HtmlImage = CType(PageHeader.FindControl("TopNavBar1"), HtmlImage)
TopNavBar1.Src = "/Images/image1.gif"
But, I keep receieving errors that TopNavBar1 is not set to an object.
How would I be able to accomplish this, or am I stuck and have to write this method on all my code behinds that need it?
Thanks!