title: How can I use C# code in html?
body: <p>I'm using this code in my html:</p>
  
  <pre><code>&lt;a href="&lt;%# ((bool)Eval("IsLinkToOther")) ? Eval("NewsLink") : ../News.aspx?NewsId=Eval("NewsId") %&gt;"&gt;&lt;%# Eval("Title") %&gt;&lt;/a&gt;
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>&lt;a &lt;%if(((bool)Eval("IsLinkToOther")))
     { %&gt;
       href="&lt;%#Eval("NewsLink")%&gt;"                               
  &lt;% } %&gt;
   &lt;%else
     {%&gt;
       href="../News.aspx?NewsId=&lt;%#Eval("NewsId")%&gt;"
  &lt;% } %&gt; &gt;&lt;%# Eval("Title") %&gt;&lt;/a&gt;
  </code></pre>
  
  <p>But It's not working, how I use them, please help, thanks...</p>