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 1966:            for (int i = 0; i <= words.Length - 1; i++)
Line 1967:            {
Line 1968:                int itemid = Convert.ToInt32(words[i].ToString());
Line 1969:                //DataTable bodyMeasure = getBodyMeasurement(itemid);
Line 1970:                //string bust = null;

Source File: d:\TryNowData\TryNow\Try.aspx.cs    Line: 1968

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14503212
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   System.Convert.ToInt32(String value) +60
   Try.item1(String Class_name, String Item_ID) in d:\TryNowData\TryNow\Try.aspx.cs:1968
   Try.mapping(String item_click) in d:\TryNowData\TryNow\Try.aspx.cs:2180
   Try.itemClicked(String ab) in d:\TryNowData\TryNow\Try.aspx.cs:2575
   Try.Page_PreInit(Object sender, EventArgs e) in d:\TryNowData\TryNow\Try.aspx.cs:456
   System.Web.UI.Page.OnPreInit(EventArgs e) +11854756
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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