Click here to Skip to main content
16,016,192 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when select date from calendar using ajax and display it in text box i want that another text box show the one day after date.
what to do?
Posted
Updated 21-Dec-12 23:50pm
v2
Comments
Abhishek Pant 22-Dec-12 6:00am    
dateTimePicker1.Value = dateTimePicker1.Value.AddDays(1);

C#
DateTime dt = myCalender.SelectedDate;
dateText.Text = dt.ToString();
datePlusOne.Text = dt.AddDays(1).ToString();
 
Share this answer
 
Comments
pck.ns 22-Dec-12 6:11am    
on which event it to be written
OriginalGriff 22-Dec-12 6:39am    
This one?
http://msdn.microsoft.com/en-US/library/system.web.ui.webcontrols.calendar.selectionchanged(v=vs.80).aspx
display it in text box i want that another text box show the one day after date
Define onchange method for calendar or the first textbox. In this event, set the date/value of the second textbox as desired. Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900