Calender control i want change year fastly
hi,calender control i want change year fastly.but iam getting problem for selecting 20yrs back dates
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak Bhatia142 reputationPosted Aug 4, 2010, 9:54 PM EDT
Madhu KRank #1,514 · 1.1K reputationPosted Aug 5, 2010, 11:04 PM EDT
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/calendar/calendar.aspx
Satyapriya NayakRank #47 · 31.5K reputationPosted Aug 6, 2010, 1:11 AM EDT
Here is a solution for you.so run the attachments
Thanks
Please do not forget to mark as Accepted answer if it helped you.
jitendra patel9 reputationPosted Aug 6, 2010, 4:47 AM EDT
please Refer this
-->
Protected void Button_click( )
{
label1.text=calender1.selecteddate.longdate.tostring();
}
protecd void Page_load( )
{
datetime dt=new datetime(1985,03,21);
calender1.visibledate=dt; (this for month and year)
calender1.selecteddate=dt; (this for only date)
}