Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:[^]

em following above mentioned link to implement shopping cart in 4.0! Error occurred in ProductDetail.aspx.cs in this line "if (Profile.SCart == null)" jxt can't understand that where shud i define SCart in application...need to resolve it urgently!
Updated 9-Dec-12 1:36am

1 solution

The code statement....
if (Profile.SCart == null)

appears more than once on the page in your link.


There is thread there already outlining the same problem you mentioned.

The author states he is implementing AJAX extensions,
Do you have those installed?

ALSO ALSO - Probably the BEST solution!!!
Who ever the author of the article is....
He/She has offered to look into the issue if your send your source code to him/her.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900