Write date in asp:TextBox
<pre><code>&lt;asp:TextBox ID="txtDate" runat="server" Value="&lt;%= DateTime.Today.ToShortDateString() %&gt;" /&gt;
</code></pre>

<p><code>Value="&lt;%= DateTime.Today.ToShortDateString() %&gt;"</code> does not write date in txt field but whole string. What i am doing wrong?</p>
