Hi all,
I am having a requirement tht i have to select the date from 3 drop downlists for date, month and year combo boxes. I already wrote a code for a calendar control tht when selected will be displayed in the adjacent text box. but now for a date of birth u cant ask people to go back to the year tht they have born(may be around 84 ) then my code is of useless thts y i am asking for a drop down list calendar control.
My code goes here for the old calendar control
CODE
Protected Sub btndob_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btndob.Click
Try
If (txtdob.Text.Trim() IsNot DBNull.Value) Then
Calendar1.SelectedDate = Convert.ToDateTime(txtdob.Text)
End If
Catch ex As Exception
IsDate(txtdob.Text)
End Try
Calendar1.Visible = True
End Sub
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
txtdob.Text = DateTime.Parse(Calendar1.SelectedDate).ToString()
Calendar1.Visible = False
End Sub
How can we do tht any help or suggestions for performing this task......
any help or suggestion is greatly appreciated...
THanks in advance..
Raghu