using aspx controls in base class
<p>I've got two aspx pages which are very similar and have various identical functions in the code behind. I'd like to create a base class which both the code behind classes derive from. Is it possible for the base class to access the controls on the aspx page. For instance:</p>

<pre><code>class base
    inherits System.Web.UI.Page
    Sub prepareScreen()
       'txtName is a text box on the aspx page
       Me.txtName.text = "George"
    end sub
end class

class codeBehind
     inherits base
     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          prepareScreen()
     end sub
end class
</code></pre>

<p>Somewhat understandably the code fails to compile with:</p>

<pre><code>'txtName' is not a member of 'clsbase'
</code></pre>

<p>Is it possible to link the two together?</p>
