Calender Control(Urgent)
-
Can i give yearwise scroll criteria to ASP.NET Calender control or give me .js file which will help me for picking date. Thanks in advance.
-
Can i give yearwise scroll criteria to ASP.NET Calender control or give me .js file which will help me for picking date. Thanks in advance.
yes my dear, ..... Name of the file ts_pick.js The code: // Title: Timestamp picker // Description: See the demo at url // Version: 1.0 // Date: 2001-05-12 (yyyy-mm-dd) // Notes: Permission given to use this script in any kind of applications if // header lines are left unchanged. Feel free to contact the author // for feature requests and/or donations function show_calendar(str_target, str_datetime) { var arr_months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var mons=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"]; var week_days = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]; var n_weekstart = 1; // day week starts from (normally 0 or 1) var dt_datetime = (str_datetime == null || str_datetime =="" ? new Date() : str2dt(str_datetime)); var dt_prev_month = new Date(dt_datetime); dt_prev_month.setMonth(dt_datetime.getMonth()-1); var dt_next_month = new Date(dt_datetime); dt_next_month.setMonth(dt_datetime.getMonth()+1); var dt_firstday = new Date(dt_datetime); dt_firstday.setDate(1); dt_firstday.setDate(1-(7+dt_firstday.getDay()-n_weekstart)%7); var dt_lastday = new Date(dt_next_month); dt_lastday.setDate(0); // html generation (feel free to tune it for your particular application) // print calendar header var str_buffer = new String ( "\n"+ "\n"+ " Calendar\n"+ "\n"+ "\n"+ "\n"+ "
\n"+ "\n"+ "\n \n"+ "
"); str_buffer=str_buffer+(""); for(inc=0;inc"+arr_months[inc]); else str_buffer=str_buffer+(""+arr_months[inc]); } str_buffer=str_buffer+(""); str_buffer=str_buffer+new String("
"); str_buffer=str_buffer+("