Calender Control In ASP.NET
-
Can only one please tell me how to get Year Scroll on ASP Calender Control??? Please help its very URGENT. Thanks in Advance
-
Can only one please tell me how to get Year Scroll on ASP Calender Control??? Please help its very URGENT. Thanks in Advance
i would format a table around the calendar and place two linkbuttons on either side add have them add/subtract years from the cal object selected date and the onclick of those buttons change the selected date for the cal... sound ok?
-
i would format a table around the calendar and place two linkbuttons on either side add have them add/subtract years from the cal object selected date and the onclick of those buttons change the selected date for the cal... sound ok?
Thanks for the reply but can please give me a start as I am not able to know from where to start. Thanks.
-
Thanks for the reply but can please give me a start as I am not able to know from where to start. Thanks.
the most basic: in the aspx page:
lastyear nextyear
in the code behind:private void Page_Load(object sender, System.EventArgs e) { if(!IsPostBack) Calendar1.SelectedDate = DateTime.Now; } private void LinkButton1_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(-1); Calendar1.VisibleDate = Calendar1.SelectedDate; } private void LinkButton2_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(1); Calendar1.VisibleDate = Calendar1.SelectedDate; }
-- modified at 18:31 Tuesday 20th June, 2006 -
the most basic: in the aspx page:
lastyear nextyear
in the code behind:private void Page_Load(object sender, System.EventArgs e) { if(!IsPostBack) Calendar1.SelectedDate = DateTime.Now; } private void LinkButton1_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(-1); Calendar1.VisibleDate = Calendar1.SelectedDate; } private void LinkButton2_Click(object sender, System.EventArgs e) { Calendar1.SelectedDate = Calendar1.SelectedDate.AddYears(1); Calendar1.VisibleDate = Calendar1.SelectedDate; }
-- modified at 18:31 Tuesday 20th June, 2006Thanks a lot.Its working now. Thanks again. Bye