Posted on: 11/6/2012 12:06:54 AM | Views : 327

Hi all,
I have a problem with a textbox control which had a property textmode="date"
the problem is that this textbox does not read any correct date text from code behind and showes empty field at the webpage.
I tried it by all possible ways.
as the following
The ASPX code:
<asp:TextBox ID="TextBox_BirthDate" runat="server" TextMode="Date"></asp:TextBox>
The VB code:
Me.TextBox_BirthDate.Text = dv.Table.Rows(0).Item("DoB").ToShortDateString
Or
Dim temp As Date = New Date(month:=12, day:=31, year:=1989)
Me.TextBox_BirthDate.Text = temp
Go to the complete details ...