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:


Line 57:     public void BindData()
Line 58:     {
Line 59:         this.typeselected = int.Parse(DropDownListType.SelectedValue);
Line 60:         string spe = code.Stripspecial(DropDownListType.SelectedItem.Text.ToString());
Line 61:         this.zipselected = int.Parse(DropDownListQuartier.SelectedValue);

Source File: d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\bars-paris\bars.aspx.cs    Line: 59

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +267
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +175
   sortir_bars_paris_bars.BindData() in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\bars-paris\bars.aspx.cs:59
   sortir_bars_paris_bars.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\bars-paris\bars.aspx.cs:51
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0