.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How to add a button to calendar control which shows years.so that I can select particular year.

Posted By: rakesh     Posted Date: July 08, 2009    Points:2   Category :ASP.Net
Hi All,

How to add a button to calendar control so that it shows some years say as a dropdown(2009 to 2000) and when I press 2000 it should show (2001 to 1992) and so on....

so that I can select required year directly without pressing previous button of calendar control.

Responses
Author: Amit Mehra             
Posted Date: July 08, 2009     Points: 5   

Hi Rakesh,
I don't think you can add button control in calendar control..you have to add the your dropdownlist and a button control separately and depending upon selection you have load year in calendar control..

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: rakesh             
Posted Date: July 09, 2009     Points: 5   

Hi Amith,
Yes you r write.Is there any javascript or any method is available to do the same thing without adding seperate button,dropdownlist.

can you give me the code for creating custom control as per my requirement.

Author: Amit Mehra             
Posted Date: July 09, 2009     Points: 5   

Hi rakesh,
Sorry...i do not have any code now....But As per your requirement just check this calendar and see if it fits in your requirement.

http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Clintonzz             
Posted Date: April 16, 2014     Points: 20   

Never considered things like this before, don't know some C# UI calendar would be able to make things easier or not:

http://www.kettic.com/winforms_ui/calendar_overview.shtml



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend