Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do you code a calender in asp.net?
Posted
Updated 30-Aug-10 21:32pm
Comments
raju melveetilpurayil 31-Aug-10 5:01am    
Tell us what kind of code you want to do?
Sandeep Mewara 31-Aug-10 14:15pm    
Reason for my vote of 1
No effort

Sometimes, it is really needed to make our own custom calenders, for eg. if we need to put controls like button, dropdowns inside that calender to perform some events on a particular date. For this purpose, you may store all the days of a month(you can fetch those values by using date time properties of asp.net) in a dataset and then bind a datagrid from that dataset. Since, datagrid has the property of defining number of vertical and horizontal rows, thus customizing them, will be a very nice solution to your problem. I have done this earlier using the same process.
Anurag
@cheers@
 
Share this answer
 
You don't. You use a Calendar control.

See Here[^]
 
Share this answer
 
Well, the ASP.NET calendar control sucks, unless they've changed it. But there's tons of javascript controls that are better, freely available on the web.
 
Share this answer
 
 
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