Hi,
in my application we need to simulate the functionaly of outlook calendar control using asp.net calendar control in ASP.net application
can any body help in this regard
Its not really that hard If you are just creating an event calendar in a month view. If you want week and day views...it becomes a little more complicated.
Assuming you already have database tables with all the necessary fields (Date, StartTime, EndTime, Text, etc...) I would suggest creating an "Event" class. Create some kind of object storage instance to contain all of the events (i.e. hashtable, sortedList, dictionary...etc) You just need a key/value container. Use the date of the event as the key. (so, that means your value(object) will be an array of events for that day).
Now using the calendars day render event, you can display all the events on the day.
Week and day views are along the same lines of creating event storage, but there are no such views in the calendar control...so youre going to have to write something custom to build these views.
Hope that gets you started. There are a lot of examples of web event calendars out there. Here's one in php that is a good model to build on.
0 comments:
Post a Comment