I am making a demo application for exploring the use of the new HTML5 input types (for example, date, email, etc. as TextMode), introduced into the asp.net textbox control.
On my sample page, I want to display the field data on the server side using asp: TextBox with TextMode = "Date".
The asp.net code is as follows:
<asp:TextBox ID="txtExpenseDate" TextMode="Date" runat="server"></asp:TextBox>
C # backend code looks like
protected void Page_Load(object sender, EventArgs e)
{
txtExpenseDate.Text = DateTime.Now.ToString("MM/dd/yyyy");
}
But while the page is loading, the date value is not displayed in the text box.
What am I doing wrong?
:
, , HTML5, . Google Chrome 33.0.1750.117 . , HTML5 TextMode = "".
,
Sumit