How bind Calendar control to SQL Server database?

K

kai

Hi,
I use ASP.NET 2.0 and SQL Server 2005. I try to create calendar control
which loads all the holidays from a SQL Server 2005 table, and on the
calendar , all the holidays will displayed. I saw some code on the Web hard
coded holidays, then populate on the calendar. Is it possible to do calendar
data binding?

Thanks

kai
 
G

Guest

Hello Kai,

The calendar control which comes with Visual Studio does not support
databinding -you need to use the DayRender event to affect databinding. The
wonderful people at OdeToCode have written an article which might be of
assistance to you: http://odetocode.com/Articles/223.aspx.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top