傢伙您好我是新來的SO,也新的ASP.NETasp.net購物車
我試圖實現對我的表弟誰正計劃出售的書,他要導入一個簡單的購物車/籃來自某些地下作者的國家。
我設計了系統並在MVS上構建它,並且需要有此領域經驗的人員在可能的情況下分析我的代碼。
我已經貼在我的代碼引擎收錄在http://pastebin.com/TsykcZPG
錯誤我遇到:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30451: 'ShoppingCart' is not declared. It may be inaccessible due to its protection level.
Source Error:
Line 18: ' The GridView will take our cart items one by one and use the properties
Line 19: ' that we declared as column names (DataFields)
Line 20: gvShoppingCart.DataSource = ShoppingCart.Instance.Items
Line 21: gvShoppingCart.DataBind()
Line 22: End Sub
Source File: C:\inetpub\vhosts\bookshop.hostinguk.org\httpdocs\ViewCart.aspx.vb Line: 20
請簡單檢查,併爲我提供任何這裏的解決方案。
謝謝大家
問候
丹
它從哪裏獲得'ShoppingCart'數據?你可以向我們展示購物車類代碼,或者你正在使用的任何類別代碼,如果你希望 – Lauw 2011-04-04 12:22:10
檢查你的購物車類是否可以訪問,即將它公開,可以刪除項目名稱。 – gdp 2011-04-04 12:29:19