Calendar should default to earlier phase end date - not current date
There are two calender and two corresponding text box present.when we select the date in 1st calender the text box reflects its date.After selecting the date in 1st calender when we moved fill the second calender it should show by default the date and month of the first calender.From its the user can select the as per his requirement.
Marimuthu ArigovindasamyPosted Jun 22, 2010, 3:25 AM
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
Calendar2.SelectedDate = Calendar1.SelectedDate;
texxbox1.Text = Calendar1.SelectedDate;
texxbox2.Text = Calendar2.SelectedDate;
}
protected void Calendar2_SelectionChanged(object sender, EventArgs e)
{
texxbox2.Text = Calendar2.SelectedDate;
}
Nihar PanigrahiPosted Jun 22, 2010, 2:46 AM
hi Marimuthu.after u select the date in the first calender when u want to fill the second textbox with date the corresponding calender should by defaultb show the first date and month from which the user can select the required date and tym
Marimuthu ArigovindasamyPosted Jun 22, 2010, 2:25 AM
1. Selecting date from 1st calender as "23rd Jun 2010"
2. Default date for the 2nd clender is "23rd Jun 2010"
Use the below code for the above condition
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
Calendar2.SelectedDate = Calendar1.SelectedDate;
}