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.