asp:TextBox write date in txt field
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:22 UTC
Read the original article
Hit count: 151
c#
<asp:TextBox AutoPostBack="true" ID="txtDate" OnTextChanged="txtDate_TextChanged" runat="server" Value="<%= DateTime.Today.ToShortDateString() %>"></asp:TextBox>
Value="<%= DateTime.Today.ToShortDateString() %>" does not write date in txt field but whole string. What i am doing wrong?
© Stack Overflow or respective owner