Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2007, 08:26 PM
Registered User
 
Join Date: Apr 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solution to the Strange User File entries

After a lot of looking, reading, and experimenting, I finally fixed the problem of TBH creating an ungodly number of anonymous users in the User and Profile files. In the web.config file (the main one, NOT the one in the Admin folder) I changed the "allowAnonymous" value from TRUE to FALSE in the following line (it happens to be line# 80 in my file)...

                <add name="ShoppingCart" type="MB.TheBeerHouse.BLL.Store.ShoppingCart" serializeAs="Binary" allowAnonymous="true"/>

...to this...

                <add name="ShoppingCart" type="MB.TheBeerHouse.BLL.Store.ShoppingCart" serializeAs="Binary" allowAnonymous="false"/>


I believe that's the change that solved the problem. So if you don't want your User and Profile files filling up with thousands of junk entries, there's the fix.

I must admit, I don't understand WHY Marco set it the way he did to begin with. So if I'm missing some purpose behind the original setting, feel free to tell me what it was.

Thanx,
Wolven


 
Old April 23rd, 2007, 10:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

He wants anonymous users to be able to put stuff in their cart. When they log in those items will be transferred to their authenticated identity.

Have you tried adding an item to the cart as an anonymous user?

 
Old April 24th, 2007, 07:40 PM
Registered User
 
Join Date: Apr 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, I tried it. It just takes you to the shopping cart page and tells you that "there are no items in your cart". i.e. You can't add items to the shopping cart unless you are a registered user. I'm thinking that when an anonymous user tries to add something to their cart, I'll send them a message saying they must be logged in to use the shopping cart. Or perhaps send them to the registration page AND display the message about the shopping cart. My thinking is, they are going to have to provide all the same personal info to make a payment as they would to register, so they might as well just register. In fact, I was thinking of having the payment info fields on the registration screen. They would be optional, until you get to the payment portion of the checkout process anyway...

Does anyone see a problem with this approach?

Thanx,
Wolven






Similar Threads
Thread Thread Starter Forum Replies Last Post
user id during data entries mateenmohd Access 11 January 15th, 2008 12:17 AM
Forms or a solution for end user data entry? Scott B SQL Server 2005 0 October 19th, 2007 04:21 AM
Strange User File entries... Wolven BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 April 23rd, 2007 02:32 AM
strange file upload problem dan195 ASP.NET 1.0 and 1.1 Basics 0 January 28th, 2007 12:36 AM
Please help with strange file download behavior! glwatson Classic ASP Basics 0 September 10th, 2003 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.