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 93:         if (DropDownListQuartier.SelectedIndex != 0 && DropDownListType.SelectedIndex != 0)
Line 94:         {
Line 95:             liste = com.GetAdresseSportListe(1, int.Parse(DropDownListType.SelectedValue), DropDownListQuartier.SelectedValue, 1, startPage, records_per_page, out message);
Line 96:             LiteralTitreResult.Text = DropDownListType.SelectedItem.Text.ToString() + " dans le " + code.EvalZoneQuartier(Int32.Parse(DropDownListQuartier.SelectedItem.Value), DropDownListQuartier.SelectedItem.Text.ToString());
Line 97:             completeURL = "http://www.cityzens.fr/sports-paris/" + code.Stripspecial(DropDownListType.SelectedItem.Text.ToString()) + "-" + DropDownListType.SelectedValue.ToString() + "/" + DropDownListQuartier.SelectedValue;

Source File: d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\sports-paris\sport-et-detente-paris.aspx.cs    Line: 95

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_sports_paris_sports_et_detente_paris.BindData() in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\sports-paris\sport-et-detente-paris.aspx.cs:95
   sortir_sports_paris_sports_et_detente_paris.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\sports-paris\sport-et-detente-paris.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