ASP.NET Encoding Syntax(<%#: %>) giving me error?
<p>I wanted to use ASP.NET encoding feature. If I have </p>

<pre><code>&lt;h3&gt;&lt;%#: Eval("Header")%&gt;&lt;/h3&gt;
</code></pre>

<p>Then it gives me this error, </p>

<blockquote>
  <p>System.Web.HttpException: DataBinding: 'System.Char' does not contain a property with the name 'Header'.</p>
</blockquote>

<p>Why does it give me this error? Note, <code>&lt;%# Eval("Header")%&gt;</code> works but this does not <code>&lt;%#: Eval("Header")%&gt;</code>(note the colon :)</p>

<p>I was able to solve the issue, Actually I have <code>DataSource="&lt;%#: Product.relatedProduct %&gt;"</code> before  <code>&lt;%# Eval("Header")%&gt;</code>. When I remove the colon from <code>DataSource="&lt;%#: Product.relatedProduct %&gt;"</code>, everythings works. Weird that why ASP.NET showing error on <code>&lt;%# Eval("Header")%&gt;</code> instead of <code>DataSource="&lt;%#: Product.relatedProduct %&gt;"</code></p>

<p>In Local when targeting 4.0, &lt;%#: works but in server it shows compile time error.</p>
