Server Error in '/' Application.
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
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:
[FormatException: Input string was not in a correct format.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7469351 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119 System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +193 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +14 System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743 |
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Any possibly information would be greatly appreciated. Thanks!
9 Answers, 1 is accepted
Amanda,
I had exactly the same problem this week. I searched the forum extensively and it seems like everybody who was having this problem was advised to purchase an upgrade of telerik controls. :) I really did not want to go that route.
I found a solution that worked for me.
Please check your ExpandCollapseColumn-ButtonType in MasterTableView tag. If you have this:
ExpandCollapseColumn-ButtonType="ImageButton"
change it to this:
ExpandCollapseColumn-ButtonType="LinkButton"
if you don't have it at all, then add ExpandCollapseColumn-ButtonType="LinkButton". (When you don't specify it, the default one is ExpandCollapseColumn-ButtonType="ImageButton").
Changing "ImageButton" to "LinkButton" removed an unneseccary postback and as a result the data is now being pulled without throwing an exception.
Please let me know if it fixed the problem for you.
Thank you!
Yulia
Indeed if you migrate to the latest versions of the RadControls for ASP.NET or ASP.NET AJAX (Q1 2009 SP1) the issue under FireFox should be addressed. It appeared with version 3.0 of the browser and was fixed shortly after that by our developers in the subsequent release of the controls.
Best regards,
Sebastian
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
OnClientClick
="this.disabled=true;"
Add this to the image button. For some reason Firefox does double postbacks. I have experienced this problem in older versions of telerik. This happened when an image button was in a panel and a repeater surrounded by an Radajaxpanel.
<asp:ImageButton ID="butAdd" runat="server" ImageUrl="Images/Other/add_24.gif" |
AlternateText="Add Item" Height="24px" ImageAlign="Bottom" |
onclientclick="this.disabled=true" Visible="False" /> |
And here's what I changed it to so it does work:
<asp:LinkButton ID="LinkButton1" |
runat="server"><img src="Images/Other/add_24.gif" border=0 title="Add item" /></asp:LinkButton> |