家伙您好我是新来的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