Write date in asp:TextBox

Posted by senzacionale on Stack Overflow See other posts from Stack Overflow or by senzacionale
Published on 2010-05-30T08:18:58Z Indexed on 2010/05/30 8:42 UTC
Read the original article Hit count: 141

Filed under:
|
<asp:TextBox ID="txtDate" runat="server" Value="<%= DateTime.Today.ToShortDateString() %>" />

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET