search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Daypilot: Calendar. <Globalization>

Asked by drizzim
14 years ago.

We need to change globalization to en-gb. We have tried a mix of thefollowing. The problem is that the controls are not changing from us to gb. We know this because if the date is <=12 it will add the event but if its over 12 it will give an error.

Error: Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Arithmetic overflow error converting expression to data type datetime. The statement has been terminated.

It goes to: scriptresource...6fa8[dynamic] and points to:

finally

{

if (_this._xmlHttpRequest != null)

{
_this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
_this._xmlHttpRequest = null;
}
}
}

web.config: <globalization uiCulture="en-gb" culture="en-gb"/>

default.aspx.cs: protected void EventDetail_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
{
e.NewValues["eventstart"] = Convert.ToDateTime(e.NewValues["eventstart"], new CultureInfo("en-gb"));
e.NewValues["eventend"] = Convert.ToDateTime(e.NewValues["eventend"], new CultureInfo("en-gb"));
}

defaultaspx: <asp:DetailsView OnItemUpdating="EventDetail_ItemUpdating"

default.aspx: <DayPilot:DayPilotCalendar {StartDate="2007-09-30" OR StartDate="30-09-2007"

Any questions or ideas please post. This has been bugging me for a few days now.

Comment posted by drizzim
14 years ago.

also changes start from web.config.

+ i added using system globalization to the aspx.cs file.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.