Server Error in '/Registration' 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:


Line 64:         if (this.Request["fid"] != null)
Line 65:         {
Line 66:             fid = int.Parse(this.Request["fid"].ToString());
Line 67:         }
Line 68:         else

Source File: d:\Applications\RegistrationFormSystem\Default.aspx.cs    Line: 66

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10518915
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +207
   _Default.OnPreInit(EventArgs e) in d:\Applications\RegistrationFormSystem\Default.aspx.cs:66
   System.Web.UI.Page.PerformPreInit() +42
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062