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 256:        Dim strCmd_City As String
Line 257:
Line 258:        strCmd2 = "Select Top 1 Area_Class_id, City_Class_id From Info_Area Where Info_data_id='" & CInt(ViewState("Info_data_id")) & "' And (Area_Class_id='" & CInt(ViewState("Area_Class_id")) & "' OR City_Class_id='" & CInt(ViewState("City_Class_id")) & "') "
Line 259:
Line 260:        Try

Source File: C:\home\site\wwwroot\jptrip\detail.aspx.vb    Line: 258

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +201
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +66

[InvalidCastException: Conversion from string "7city=48info=417" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +246
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) +835
   jptrip_detail.CityName_Handle() in C:\home\site\wwwroot\jptrip\detail.aspx.vb:258
   jptrip_detail.Page_Load(Object sender, EventArgs e) in C:\home\site\wwwroot\jptrip\detail.aspx.vb:25
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175