Andrew
Andrew

Reputation: 10033

Making an MSSQL Driven Calendar in .NET c#

I'm new to .NET and my first project is to create a event calendar to be populated from a events table in mSQL. I know there is a calendar object in the standard components but wondered if i'm better off populating a table view manually as i didn't know if there were lots of limitations to the standard object/component.

Thanks for your help

Upvotes: 2

Views: 3022

Answers (2)

John Rasch
John Rasch

Reputation: 63505

This can be done quite easily with the built-in calendar control that .NET provides. You're basically dealing with the DayRender event.

An excellent example can be found here: http://www.c-sharpcorner.com/UploadFile/munnamax/DatabaseDriven08212007012112AM/DatabaseDriven.aspx

Upvotes: 2

TheTXI
TheTXI

Reputation: 37905

You can use the standard calendar control. It will give you the ability to perform code in each cell (day) creation, so you can query your DB, find your dates, and during that paticular date's load, you can write any necessary content inside the cell.

Upvotes: 1

Related Questions