Click here to Skip to main content
16,004,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Server Error in '/CA' 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) +14281985
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +305
GeneratePanelOrder.OnClick_btnSubmit(Object sender, EventArgs e) +1325
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804




is it the website problem or my browser problem?
Posted
Updated 17-Jul-14 2:17am
v2
Comments
[no name] 17-Jul-14 8:15am    
It means exactly what it says. You are trying to convert a string to a integer that cannot be an integer.
Ram Kumar Raja 17-Jul-14 8:18am    
pl suggest me how to go solve the problem step by step if it is my browser problem..i'm using mozilla
[no name] 17-Jul-14 8:21am    
Step 1. Read the error message
Step 2. Debug your code. Why on earth would you think it's a browser problem.
Step 3. Fix your code.
Ram Kumar Raja 17-Jul-14 8:26am    
pl teach me how to debug,what and where to open?
[no name] 17-Jul-14 8:46am    
Sorry no. No one can teach you programming in a forum posting.

1 solution

This is not a browser problem but the data. The data contains some non numeric values. You need to validate before processing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900