asp.net data binding in literal
<p>Lets say we have the following in the default.aspx file</p>

<pre><code>&lt;asp:Literal runat="server" Text="&lt;%= TestMethod() %&gt;" /&gt;
</code></pre>

<p>What needs to be defined in the default.aspx.cs file to make this work?</p>

<p>I tried to add a method called <code>TestMethod</code> to the <code>_Default</code> class which simply returned the string <code>Test</code>, but it didn't seem to work.</p>

<p>Can anyone help?</p>

<p>Thanks,</p>

<p>AJ</p>
