title: Best way to access properties of my code behind class from the markup in ASP.NET
body: <p>Let's say I have two files <code>default.aspx</code> and the associated <code>default.aspx.cs</code>.</p>
  <p>default.aspx.cs:</p>
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      var myObject = new MyObject();
  }
  </code></pre>
  <p>Is there a way that in the <code>default.aspx</code> I could do something like:</p>
  <pre><code>&lt;%= myObject.SomePropertyOfThisObject%&gt;
  </code></pre>
  <p>... or something similar, without having to use databinders or something complicated like this? And if there's no way around binding the data, what would be the best way to do it?</p>