1
我們的一個動態數據應用程序在測試服務器上出現故障。在某些服務器上使用動態數據框架更新行失敗
用例如下:用戶選擇一個帶有DateTime輸入字段的行。該字段模板使用JQuery日曆進行了增強。用戶輸入som任意但格式正確的日期。當點擊「更新」應用程序返回以下錯誤:
Unable to convert input string '31.12.2011' to type 'System.DateTime'.
然而,我們的二次測試服務器上,並在我的電腦上可正常工作。
列已配置這樣的數據模型:
[UIHint("CalendarDateTime")]
[DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}")]
[DisplayName("Slutt")]
public string EndDate { get; set; }
我想找到雙方的解決方案和解釋。誰能幫忙?
非常感謝。
-Andreas