 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
 | This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
|
|
|
|
|

November 28th, 2006, 09:32 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar!
Thanks for instant reply. Will try this tomorrow.
This webshop should become part of my uni project.
So it is not online now.
It is supposed to be online ordering app. for more more shops within one app.
But just coming back to my initial question.
Multiple shops.
Do you think that all (3) shops should use same DB? Can they?
Or maybe it is easier to use 3 different DBs and use separate ASPNETDB for membership and everything else?
Because as i said, it is my uni project and i know im asking very basic questions. But without that understanding i cant do anything.
So thanks for your patience.
Peter
|
|

November 28th, 2006, 06:09 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Instant Results == Instant replies... ;)
Regarding your question about multiple shops: it all depends...
Personally, I wouldn't merge three shops that quick. It brings a number of issues, regarding security and maintenance. With three separate shops, it's easier to move or sell a shop without affecting the others.
I guess it depends on how you define your shop. If with shop you mean one owner, but multiple "faces" of the site (e.g. Themes) or product categories, you could combine them. If multiple shops means multiple owners, report parties and payment providers, then separating them would be, IMO, a better solution.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

November 28th, 2006, 09:07 PM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar!
I think you are right.
I will put them all in separate folders.
All files, products, and db files and everything. Its just easier.
So in this case, merging your webshop with existing ASPNETDB would go
similar to this post?
http://p2p.wrox.com/topic.asp?TOPIC_ID=51419
I would like to keep membership details in ASPNETDB.
So just some changes in web.config file?
Thanks again.
Peter
Peter
|
|

November 29th, 2006, 10:48 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
quote:I think you are right.
|
I didn't try to be right. I just offered different views with different solutions. What's right for you depends on your situation.
If you want to use the same ASP.NET database across multiple applications, take a look here: http://weblogs.asp.net/scottgu/archi...25/423703.aspx
That posts explains how to configure a full version of SQL Server for the provider features in ASP.NET 2.
Make sure each application uses the same applicationName attribute in each application's web.config file, ro they won't be sharing user state.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

December 5th, 2006, 07:58 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar.
Another problem.
I was trying to upload webshop (your default version) to local iis. I have connected DB file to sql express server and changed connection string. A have added ASPNET user for this DB and granted all possible rights.
Application will start and i can browse products and see details.
But i can not add anything into shopping cart. Shopping cart is always empty.
When i click Add to cart i will only see default shoppingcart.aspx with message you shopping cart is empty.
No error message. Nothing.
Same thing if i just leave everything as it was and just upload site to iis and run it.
can browse products and details. Can not update shopping cart.
Can you help?
Peter
EDIT: Same thing with login. I can enter user name and password.
No error. It just redirects me to home page and I am not loged in.
|
|

December 5th, 2006, 06:47 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Does your machine / browser accept cookies? The Shop uses sessions (and thus cookies) to keep track of things...
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

December 6th, 2006, 09:30 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hey Imar!
exactly right! My Zone Alarm was blocking cookies even after I specifically allowed them for localhost.
Disabling cookies control in ZA solved it.
So now what im trying to do is: I have 4 different virtual folders in IIS. One is App and 3 shops. Separately they all running. Good start. Now i will try to get them to use one ASP.NET db for membership.
Thanks a lot mate. Great help.
|
|

December 6th, 2006, 01:33 PM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar!
I am successfully using one membership provider for all 3 shops. I can login with one admin password in all of them. I can even create user in one of the shops and that will make that user available for all other shops.
One problem.
I have to login everytime i access different shop.
Example:
Login into localhost/shop1 and browse products, then click link to localhost/shop2 but i have to login again.
They are all using same db so i just enter same username and same pass. But i was wondering. Is there some way how to pass that info to another shop? So i would be loged in for all 3 shops?
Thanks.
Peter
|
|
 |