“/”应用程序中的服务器错误。

输入字符串的格式不正确。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.FormatException: 输入字符串的格式不正确。

源错误:


行 55: 
行 56: 
行 57:         ssid = int.Parse(mds.Tables[0].Rows[0]["product11"].ToString());
行 58:         mmid = int.Parse(mds.Tables[0].Rows[0]["product5"].ToString());
行 59:         mds = mdb.GetDs("SELECT TOP 1 * FROM product WHERE product11 > " + ssid + " and product5 =" + mmid + "  order by product11 asc");

源文件: d:\wwwroot\hongtu\wwwroot\productshow.aspx.cs    行: 57

堆栈跟踪:


[FormatException: 输入字符串的格式不正确。]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12937893
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +120
   System.Int32.Parse(String s) +24
   productshow.Page_Load(Object sender, EventArgs e) in d:\wwwroot\hongtu\wwwroot\productshow.aspx.cs:57
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.4087.0