Welcome to the Calendar Tutorial
Calendar is ASP.NET Control that generates HTML calendar views (Day, Week/Week2,
WorkWeek, Month, Year or Task) based on data supplied either in design time,
runtime or using data binding. Look into getting started page for some
directions on how to implement control in your application.
Embedding the Control Into the Page
ASP.NET makes incorporating custom controls extremely easy. All you need to do
is copy the Mediachase.Web.UI.WebControls.dll assembly into the bin
directory of your web application, and add the following two lines of code to
your page:
The first line registers the control tag prefix (at the top of the page):
<%@ Register TagPrefix="mc"
Namespace="Mediachase.Web.UI.WebControls"
Assembly="Mediachase.Web.UI.WebControls" %>
The second line embeds the menu (anywhere within your page):
<mc:calendar id="CalendarCtrl" runat="server" Width="100%"
ViewType="MonthView" Palette="Windows" >
</mc:calendar>
If you are using Visual Studio .NET, you can add the control to your toolbox
for easy access. Then just drag & drop it in into your page.
Adding control to VS.NET toolbox
To add the control to the Visual Studio .NET toolbox, please do the following:
-
Open a Web Form (aspx page) in design mode;
-
Right-click on the toolbox;
-
Select Customize Toolbox;
-
Select the .NET Framework Components
tab;
-
Click Browse...;
-
Find Mediachase.Web.UI.WebControls.dll on your local machine, and select Open.
Now when you add the control to your web projects, Visual Studio will
automatically add the Mediachase.Web.UI.WebControls.dll assembly to your web
application's bin directory. To deploy the application, all you need to do is
copy the content to the live server.