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 89:         if (DropDownListQuartier.SelectedIndex != 0 && DropDownListType.SelectedIndex != 0)
Line 90:         {
Line 91:             liste = com.GetAdresseSalleListe(1, int.Parse(DropDownListType.SelectedValue), DropDownListQuartier.SelectedValue, 1, startPage, records_per_page, out message);
Line 92:             LiteralTitreResult.Text = DropDownListType.SelectedItem.Text.ToString() + "(s) sélectionné(e)s dans " + code.EvalZoneQuartier(Int32.Parse(DropDownListQuartier.SelectedItem.Value), DropDownListQuartier.SelectedItem.Text.ToString());
Line 93:             completeURL = "http://www.cityzens.fr/theatres-salles-paris/" + code.Stripspecial(DropDownListType.SelectedItem.Text.ToString()) + "-" + DropDownListType.SelectedValue.ToString() + "/" + DropDownListQuartier.SelectedValue;

Source File: d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\theatre-salle-paris\salle-theatre.aspx.cs    Line: 91

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_theatre_salle_paris_salle_theatre.BindData() in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\theatre-salle-paris\salle-theatre.aspx.cs:91
   sortir_theatre_salle_paris_salle_theatre.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\cityzens-25.package\cityzens.fr\wwwroot\sortir\theatre-salle-paris\salle-theatre.aspx.cs:50
   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