How bind Calendar control to SQL Server database?

  • Thread starter Thread starter kai
  • Start date Start date
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
 
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.
 
Back
Top