Hi,
It seems I have a unique problem since I can't find any solutions online.
I have a webform to an sql server database. Everything works fine except date of birth.
Protected Sub ImageButton1_Click(sender As Object, e As ImageClickEventArgs)
Dim Calendar1 As Calendar = TryCast(frmEmployee.FindControl("Calendar1"), Calendar)
If Calendar1.Visible = True Then
Calendar1.Visible = False
Else
Calendar1.Visible = True
End If
End Sub
Protected Sub Calendar1_SelectionChanged(sender As Object, e As EventArgs)
Dim DateOfBirthTextBox = CType(frmEmployee.FindControl("DateOfBirthTextBox"), TextBox).Text
Dim Calendar1 As Calendar = TryCast(frmEmployee.FindControl("Calendar1"), Calendar)
DateOfBirthTextBox = Calendar1.SelectedDate.ToShortDateString()
Calendar1.Visible = False
End Sub
Go to the complete details ...