Calendar Control in .NET
I have set-up a calendar control which works ok but there is one problem:-
I have a textbox which gets populated with the user's selected date( which is fine) but if I delete this from the textbox and click the image button so it opens up the calendar again...the date i deleted isn't there and if I click on the blank bit as the date is missing it doesn't insert it into the textbox.
code behind the selectevent changed for the calendar control-
public void cal2_SelectionChanged(object sender, System.EventArgs e)
txt_todat.Text = cal2.SelectedDate.ToShortDateString(); //inserts date
cal2.Visible = false; //hides calendar