title: How Can I Write c# code inside ASP tags
body: <p>I have this code and I have this error
  Code blocks are not supported in this context</p>
  
  <pre><code>  &lt;%
          for (int i = 0; i &lt; 5; i++)
          {
      %&gt;
      &lt;asp:DropDownList runat="server" ID="&lt;%=i %&gt;"&gt;
          &lt;asp:ListItem&gt;&lt;%i.ToString(); %&gt;&lt;/asp:ListItem&gt;
      &lt;/asp:DropDownList&gt;
      &lt;%
          }            
      %&gt;
  </code></pre>