'/' 應用程式中發生伺服器錯誤。

輸入字串格式不正確。

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.FormatException: 輸入字串格式不正確。

原始程式錯誤:


行 144:
行 145:        if (Request.QueryString["page"] != null)
行 146:            CurrentPage = Convert.ToInt32(Request.QueryString["page"]);
行 147:        else
行 148:            CurrentPage = 1;

原始程式檔: d:\vhosts\bell-luke.com.tw\httpdocs\products\product_list.aspx.cs    行: 146

堆疊追蹤:


[FormatException: 輸入字串格式不正確。]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7476599
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Convert.ToInt32(String value) +63
   products_product_list.BindList(String PMC_ID, String PHP_Type) in d:\vhosts\bell-luke.com.tw\httpdocs\products\product_list.aspx.cs:146
   products_product_list.Page_Load(Object sender, EventArgs e) in d:\vhosts\bell-luke.com.tw\httpdocs\products\product_list.aspx.cs:58
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本資訊: Microsoft .NET Framework 版本:2.0.50727.3662; ASP.NET 版本:2.0.50727.3668