title: Creating the HTML from a code behind variable
body: <p>Recently I just learned I can do this, where I can set the readonly attribute from my code behind value like this:</p>
  
  <pre><code>readonly="&lt;%# someOtherBoolean %&gt;"
  </code></pre>
  
  <p>and used it like this:</p>
  
  <pre><code>&lt;textarea 
           name="txtSomeThing" 
           tabindex="1" 
           id="txtSomeThing" 
           style="overflow: auto;" 
           rows="12" 
           cols="80"
           readonly="&lt;%# someOtherBoolean %&gt;"&gt;
  &lt;/textarea&gt;
  </code></pre>
  
  <p>Now in the same page I have something like this and again want to use the same technique but it gives me syntax errors, what should I do and what is different?</p>
  
  <pre><code>HttpContext.Current.Response.Write("&lt;textarea  style=""overflow:auto"" cols=60 rows=2 ")
  </code></pre>
  
  <p>Which I thought I can change to </p>
  
  <pre><code>HttpContext.Current.Response.Write("&lt;textarea readonly="&lt;%# someOtherBoolean %&gt;" style=""overflow:auto"" cols=80 rows=4 ")
  </code></pre>