| Text property cannot be set. String was not recognized as a valid DateTime. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.InvalidCastException: Text property cannot be set. String was not recognized as a valid DateTime. |
| Source Error: |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
| Stack Trace: |
| [InvalidCastException: Text property cannot be set. String was not recognized as a valid DateTime.] |
| Telerik.Web.UI.RadDateInput.RangeTextProperty(String value) +192 |
| Telerik.Web.UI.RadDateInput.set_Text(String value) +22 |
| Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +103 |
| Telerik.Web.UI.RadDateInput.LoadPostData(String postDataKey, NameValueCollection postCollection) +26 |
| Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13 |
| System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +346 |
| System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743 |
| -------------------------------------------------------------------------------- |
| Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 |
| <telerik:RadToolBar ID="RadToolBarGridMenu" runat="server" Width="100%" |
| onbuttonclick="RadToolBarGridMenu_ButtonClick" Skin="Black" > |
| <Items> |
| <telerik:RadToolBarButton Text="Bulk Edit Selected" Value="Edit"></telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="Update Data" Visible="false" Value="Update"></telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="Cancel Bulk Edit" Visible="false" Value="Cancel"></telerik:RadToolBarButton> |
| <telerik:RadToolBarButton IsSeparator="true" /> |
| <telerik:RadToolBarButton Text="Disable Paging" Value="Paging"></telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="Expand All" Value="Expand" Visible="false" /> |
| <telerik:RadToolBarButton Text="Collapse All" Value="Collapse" Visible="false" /> |
| <telerik:RadToolBarButton IsSeparator="true" /> |
| <telerik:RadToolBarDropDown Text="Export"> |
| <Buttons> |
| <telerik:RadToolBarButton Text="Export To PDF" CommandName="PDF" /> |
| <telerik:RadToolBarButton Text="Export To Word" CommandName="Word" /> |
| <telerik:RadToolBarButton Text="Export To Excel" CommandName="Excel" /> |
| </Buttons> |
| </telerik:RadToolBarDropDown> |
| <telerik:RadToolBarButton IsSeparator="true" /> |
| <telerik:RadToolBarSplitButton Value="View" > |
| <Buttons> |
| <telerik:RadToolBarButton Text="All Projects"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton IsSeparator="true" Value="Separator" /> |
| <telerik:RadToolBarButton CssClass="logo" Value="SaveTemplate"> |
| <ItemTemplate> |
| <div onclick="StopPropagation(event)"> |
| <table id="NewView" width="250px" style="margin-left:28px"> |
| <tr><td>View Name:</td><td><asp:TextBox ID="TextBoxViewName" runat="server" Width="150px" MaxLength="200" /></td></tr> |
| <tr><td>Is Default View:</td><td><asp:CheckBox ID="CheckBoxViewDefault" runat="server" /></td></tr> |
| <tr><td colspan="2" align="center"><asp:Button ID="ButtonCreateView" runat="server" Text="Save Template As View" OnClick="SaveTemplateAsView" /></td></tr> |
| </table> |
| </div> |
| </ItemTemplate> |
| </telerik:RadToolBarButton> |
| </Buttons> |
| </telerik:RadToolBarSplitButton> |
| </Items> |
| </telerik:RadToolBar> |
I'll grant you, wanting to upload a zero-length file is, well, an odd thing to want to do, but, it seems, in FF3.5 you can't.
I select the file OK, but when I click the button that causes a PostBack, and hence starts the Upload does nothing.
I have both client- and server-size validation on the form I use for this and I can see that the client-side validation functions fire but NO server-side code runs; not OnLoad or the server-side validation.
The same code run in IE8 /does/ upload the file.
As I say, wanting to upload a zero-length file seems like a waste of bandwidth to me, but it should work consistently, don't you think?
BTW, this code is running under Q1 2009.
--
Stuart
| //override the onload event handler to change the picker after the page is loaded |
| Sys.Application.add_load(setCalendarTable); |
| function setCalendarTable() { |
| var picker1 = $find("<%= startDateField.ClientID %>"); |
| var picker2 = $find("<%= stopDateField.ClientID %>"); |
| var calendar1 = picker1.get_calendar(); |
| var calendar2 = picker2.get_calendar(); |
| var fastNavigation1 = calendar1._getFastNavigation(); |
| var fastNavigation2 = calendar2._getFastNavigation(); |
| $clearHandlers(picker1.get_popupButton()); |
| $clearHandlers(picker2.get_popupButton()); |
| picker1.get_popupButton().href = "javascript:void(0);"; |
| picker2.get_popupButton().href = "javascript:void(0);"; |
| $addHandler(picker1.get_popupButton(), "click", function() { |
| var textbox = picker1.get_textBox(); |
| //adjust where to show the popup table |
| var x, y; |
| var adjustElement = textbox; |
| if (textbox.style.display == "none") |
| adjustElement = picker1.get_popupImage(); |
| var pos = picker1.getElementPosition(adjustElement); |
| x = pos.x; |
| y = pos.y + adjustElement.offsetHeight; |
| var e = { |
| clientX: x, |
| clientY: y - document.documentElement.scrollTop |
| }; |
| //synchronize the input date if set with the picker one |
| var date = picker1.get_selectedDate(); |
| if (date) { |
| calendar1.get_focusedDate()[0] = date.getFullYear(); |
| calendar1.get_focusedDate()[1] = date.getMonth() + 1; |
| calendar1.get_focusedDate()[2] = 1; // hardcode this to the first of the month. |
| } |
| $get(calendar1._titleID).onclick(e); |
| return false; |
| }); |
| $addHandler(picker2.get_popupButton(), "click", function() { |
| var textbox = picker2.get_textBox(); |
| //adjust where to show the popup table |
| var x, y; |
| var adjustElement = textbox; |
| if (textbox.style.display == "none") |
| adjustElement = picker2.get_popupImage(); |
| var pos = picker2.getElementPosition(adjustElement); |
| x = pos.x; |
| y = pos.y + adjustElement.offsetHeight; |
| var e = { |
| clientX: x, |
| clientY: y - document.documentElement.scrollTop |
| }; |
| //synchronize the input date if set with the picker one |
| var date = picker2.get_selectedDate(); |
| if (date) { |
| calendar2.get_focusedDate()[0] = date.getFullYear(); |
| calendar2.get_focusedDate()[1] = date.getMonth() + 1; |
| calendar2.get_focusedDate()[2] = 1; // hardcode this to the first of the month. |
| } |
| $get(calendar2._titleID).onclick(e); |
| return false; |
| }); |
| $addHandler(picker1.get_textBox(), "change", function() { |
| var textbox = picker1.get_textBox(); |
| if (textbox.value != '') { |
| var date = new Date(textbox.value); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker1.set_selectedDate(date); |
| } |
| }); |
| $addHandler(picker2.get_textBox(), "change", function() { |
| var textbox = picker2.get_textBox(); |
| if (textbox.value != '') { |
| var date = new Date(textbox.value); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker2.set_selectedDate(date); |
| } |
| }); |
| fastNavigation1.OnOK = |
| function() { |
| var date = new Date(fastNavigation1.Year, fastNavigation1.Month, 1); |
| picker1.get_dateInput().set_selectedDate(date); |
| fastNavigation1.Popup.Hide(); |
| } |
| fastNavigation2.OnOK = |
| function() { |
| var date = new Date(fastNavigation2.Year, fastNavigation2.Month, 1); |
| picker2.get_dateInput().set_selectedDate(date); |
| fastNavigation2.Popup.Hide(); |
| } |
| fastNavigation1.OnToday = |
| function() { |
| var date = new Date(); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker1.get_dateInput().set_selectedDate(date); |
| fastNavigation1.Popup.Hide(); |
| } |
| fastNavigation2.OnToday = |
| function() { |
| var date = new Date(); |
| date.setDate(1); |
| date.setHours(0, 0, 0, 0); |
| picker2.get_dateInput().set_selectedDate(date); |
| fastNavigation2.Popup.Hide(); |
| } |
| } |
We are unable to edit content in IE8.
· Select Edit Content
· Tool Bar appears
· We are then unable to select any of the drop downs (Select, Style, Para)
We do get form.js errors
i.e Invalid argument
· RTE2PUEditor.aspx
· Moss 2007 SP2
· WSS 2.0
· Windows Server 2003 SP2
Everything works as expected in IE7 and using IE7 compatibility mode.