I encountered a very peculiar bug when I opened my VS project this morning. If I select a date between 10 March 2008 and 31 March 2008, the date displayed with the <selecteddaystyle> is the previous day. So, for example, if I click on 12 March 2008, the calendar renders as if I had clicked on 11 March 2008. Any other date and the calendar renders properly.
Here is the control declaration from my ASPX page:
<c1calendar:c1webcalendar id="calendarShowDate" runat="server" allowquickselector="false" autopostbackonnavigate="false" autopostbackonselect="false" 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 /> </c1calendar:c1webcalendar>
Assembly reference from my web.confing
<add assembly="C1.Web.Calendar.2, Version=2.0.20073.53, Culture=neutral, ... />
Any assistance would be greatly appreciated. Thanks.
protected
{
}
Regards,
Patrick
<chandlerchao> wrote in message news:202500@10.0.1.98... I encountered a very peculiar bug when I opened my VS project this morning. If I select a date between 10 March 2008 and 31 March 2008, the date displayed with the <selecteddaystyle> is the previous day. So, for example, if I click on 12 March 2008, the calendar renders as if I had clicked on 11 March 2008. Any other date and the calendar renders properly. Here is the control declaration from my ASPX page: <c1calendar:c1webcalendar id="calendarShowDate" runat="server" allowquickselector="false" autopostbackonnavigate="false" autopostbackonselect="false" 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 /> </c1calendar:c1webcalendar> Assembly reference from my web.confing <add assembly="C1.Web.Calendar.2, Version=2.0.20073.53, Culture=neutral, ... /> Any assistance would be greatly appreciated. Thanks. http://helpcentral.componentone.com/cs/forums/p/74512/202500.aspx#202500
I apologize if I was unclear but I am referring to what the calendar displays as the selected date. For example, if I set the following <selecteddaystyle font-bold="true" />, when I select any of the dates listed in my previous post, the previous day has the style applied, not the day I selected.
<chandlerchao> wrote in message news:202538@10.0.1.98... I apologize if I was unclear but I am referring to what the calendar displays as the selected date. For example, if I set the following <selecteddaystyle font-bold="true" />, when I select any of the dates listed in my previous post, the previous day has the style applied, not the day I selected. http://helpcentral.componentone.com/cs/forums/p/74512/202538.aspx#202538
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.
If you provide me with an e-mail address, I can send you a URL on one of our public servers with a web page that replicates the error.
<chandlerchao> wrote in message news:202753@10.0.1.98... If you provide me with an e-mail address, I can send you a URL on one of our public servers with a web page that replicates the error. http://helpcentral.componentone.com/cs/forums/p/74512/202753.aspx#202753
I sent an e-mail to the address you provided.
<chandlerchao> wrote in message news:202797@10.0.1.98... I sent an e-mail to the address you provided. http://helpcentral.componentone.com/cs/forums/p/74512/202797.aspx#202797
The file you provided contains C1.Web.C1Input.2.dll, not C1.Web.Calendar.2.dll, so I am not sure how this would help me. Regardless, I have tried multiple versions of the C1.Web.Calendar.2.dll (2.0.20073.48, 2.0.20073.53, 2.0.20081.54) with no success. I understand you are unable to reproduce the error but I have tried hosting the control on multiple servers, running multiple versions of IIS, using multiple clients on multiple OS's and reproduced the error each time. At this point, I think the best course of action is to investigate using a different component library for this project.
<chandlerchao> wrote in message news:203969@10.0.1.98... The file you provided contains C1.Web.C1Input.2.dll, not C1.Web.Calendar.2.dll, so I am not sure how this would help me. Regardless, I have tried multiple versions of the C1.Web.Calendar.2.dll (2.0.20073.48, 2.0.20073.53, 2.0.20081.54) with no success. I understand you are unable to reproduce the error but I have tried hosting the control on multiple servers, running multiple versions of IIS, using multiple clients on multiple OS's and reproduced the error each time. At this point, I think the best course of action is to investigate using a different component library for this project. http://helpcentral.componentone.com/cs/forums/p/74512/203969.aspx#203969