This is the source for the .ASPX page:
<%@ page language="C#" autoeventwireup="true" codefile="default.aspx.cs" inherits="_default" %>
<%@ register assembly="C1.Web.Calendar.2, Version=2.0.20073.53, Culture=neutral, PublicKeyToken=15c8c19b5c4cb805"
namespace="C1.Web.Calendar"
tagprefix="C1WebCalendar" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function calendarShowDate_OnSelectionChange(calendar) {
alert(calendar.SelectedDate);
}
</script>
</head>
<body>
<form id="formDefault" runat="server">
<div>
<C1WebCalendar:c1webcalendar id="calendarShowDate" runat="server"
allowquickselector="false"
autopostbackonnavigate="false"
autopostbackonselect="false"
clientonselchange="calendarShowDate_OnSelectionChange"
bordercolor="#C4C7CF"
borderstyle="Solid"
borderwidth="1px"
font-names="Arial, Verdana, Sans-Serif"
font-size="9pt"
nexttooltip="Next Month"
prevtooltip="Previous Month"
quicknexttooltip="Ahead Three Months"
quickprevtooltip="Back Three Months"
selectionmode="Day, Days, Weekday"
weekdayformat="FirstTwoLetters"
width="220px">
<daystyle bordercolor="#FFFFFF"
borderstyle="Solid"
borderwidth="1px"
csstext="padding-bottom: 6px; padding-top: 6px;" />
<daystylehover bordercolor="#0000FF"
borderstyle="Solid"
borderwidth="1px" />
<disableddaystyle />
<monthtitlestyle />
<monthviewstyle font-size="9pt"
horizontalalign="Center" />
<nextpreviewstyle />
<othermonthdaystyle csstext="padding-bottom: 6px; padding-top: 6px;"
forecolor="#B3B3B3" />
<outofrangedaystyle />
<prevpreviewstyle />
<quicknextstyle csstext="margin-right: 3px" />
<quickprevstyle csstext="margin-left: 3px" />
<selecteddaystyle backcolor="#DCDCDC"
bordercolor="#DCDCDC"
font-bold="true"
forecolor="#0000FF" />
<selecteddaystylehover bordercolor="#0000FF"
borderstyle="Solid"
borderwidth="1px" />
<titlestyle backcolor="#C4C7CF"
csstext="cursor: default !important; height: 30px"
font-bold="true"
font-size="10pt" />
<todaydaystyle />
<weekdaystyle borderdetailed-borderbottomcolor="#C4C7CF"
borderdetailed-borderbottomstyle="Solid"
borderdetailed-borderbottomwidth="1px"
csstext="padding-bottom: 5px; padding-top: 5px;"
font-bold="true" />
<weeknumberstyle />
</C1WebCalendar:c1webcalendar>
</div>
</form>
</body>
</html>
This is the source for the code-behind file:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public partial class _default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e) { }
}
This is the web.config file:
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Windows"/>
<compilation debug="true">
<assemblies>
<add assembly="C1.Web.Calendar.2, Version=2.0.20073.53, Culture=neutral, PublicKeyToken=15C8C19B5C4CB805"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<customErrors mode="Off" />
<identity impersonate="false"/>
</system.web>
</configuration>
I have tried using the control in Visual Studio 2008 (building for Framework versions 3.5, 3.0. 2.0), Visual Studio 2005, hosting both on my local IIS and on one of our servers, and browsing with IE7, IE6, and Firefox (styles do not display at all in Firefox). When I run the code above, the alert displays the correct date but the style is applied to the previous date. FYI: I am running Vista, no SP1.