eWorld.UI calendar control
I would suggest you to use eWorld.UI Calendar control as your calendar as it provides feature rich functionality and it’s free. There are many calendar available on the net but after trying for many calendars, I landed on this one. You can see it’s feature on this Demo.
Also there is best approach to use custom control. Generally people add it by drag-drop in the form. So asp.net page generates reference tag and the control tag. as per following:
<%@ Register Assembly=”eWorld.UI, Version=126.96.36.1994, Culture=neutral, PublicKeyToken=24d65337282035f2″
Namespace=”eWorld.UI” TagPrefix=”ew” %>
The above tag is rendered when you add it from the global assembly cache. And it won’t render assembly version if you use local version of DLL that is in the bin folder. Now the issue is, suppose your project leader comes and tell you that new version of the control is in the market and use it inplace of current one. You thinking of just replacing the DLL into the bin directory. But that is not the case here as it uses version number also (in case of global assembly cache). Then you would be frustrated regarding whole scenario and may be sit for longer hours in a day to complete the whole thing as you promised your project leader to complete it today :-). Too Bad…
Now, think of the following solution. You put same tag in the web.config file for the custom control as follows:
(This would be under web.config file > system.web >Pages)
<add tagPrefix=”ew” assembly=”eWorld.UI, Version=188.8.131.524, Culture=neutral, PublicKeyToken=24d65337282035f2″ namespace=”eWorld.UI” />
This control is automatically referred to every pages where needed. No reference tag is inserted in all the pages. Now, think of above scenario of changing the control. If you have done this method, you can be relax if newer version released frequently or project leader tell us to update new control or may be you can even replace another control with same properties instead of eWorld.UI. Just Great :-). If you learn to use, how to write manageable code or functionality then you would be relax when major changes requested (Not every time though 😦 ). But still some of the part is in our own hand. Enjoy !!!