title: How do I declaratively insert a property value of a page into it's rendering?
body: <p>I would like to have  an aspx page that contains something like....</p>
  
  <pre><code>&lt;form id="form1" runas=server &gt;
      Hello &lt;%= Me.UserName() %&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and a code-behind something like...</p>
  
  <pre><code>Public Class Somepage
      inherits SomeOtherPage
      Private Readonly Property UserName() as String
      Get
          return "Rory"
      End Get
      End Property
  End Class
  </code></pre>
  
  <p>I have tried this code but the aspx errors claiming that UserName is not declared.</p>
  
  <p><strong>What is the proper way to do this?</strong></p>