title: How to access data binding object in aspx page in ASP.NET?
body: <p>I am trying to hide or show a certain section of my table depending on the value of a property in my binding object(s). </p>
  
  <pre><code>public class Class1
  {
      public bool Display { get; set; }
  }
  </code></pre>
  
  <p>In ASP.NET MVC, I can just do the following (assuming that Class1 is the model that binds to the page.)</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;Row 1&lt;/tr&gt;
      &lt;tr&gt;Row 2&lt;/tr&gt;
      &lt;% if(Model.Display) { %&gt;
      &lt;tr&gt;Row 3&lt;/tr&gt;
      &lt;tr&gt;Row 4&lt;/tr&gt;
      &lt;% } %&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>How can I achieve the same behavior in transitional ASP.NET? That "Model" variable is not available. How do I retrieve the data binding object? Thanks.</p>