1
Answer

how to solve input string was not in a correct format???

I have RecruitmentID dropdown in my page,If I select any Id and click on modify then it should be redirect to Update page....
I wrote the code it is working very fine in local but in server if I click on modify it showing error like: input string was not in a correct format..I'm not able to solve this error can any one help how to solve diz????


I'm getting the error like diz



Server Error in '/RecruitPro' 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) +12630469    System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224    Recruit.UpdateReqirementModule.BindValues() in E:\Projects - Net\RecruitMgr\Recruit\Recruit\UpdateReqirementModule.aspx.cs:47    Recruit.UpdateReqirementModule.Page_Load(Object sender, EventArgs e) in E:\Projects - Net\RecruitMgr\Recruit\Recruit\UpdateReqirementModule.aspx.cs:23    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25    System.Web.UI.Control.LoadRecursive() +71    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225              
 
Answers (1)