Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old November 28th, 2006, 09:32 AM
Registered User
 
Join Date: Oct 2006
Location: Sydney, NSW, Australia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #12 (permalink)  
Old November 28th, 2006, 06:09 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
  #13 (permalink)  
Old November 28th, 2006, 09:07 PM
Registered User
 
Join Date: Oct 2006
Location: Sydney, NSW, Australia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #14 (permalink)  
Old November 29th, 2006, 10:48 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
  #15 (permalink)  
Old December 5th, 2006, 07:58 AM
Registered User
 
Join Date: Oct 2006
Location: Sydney, NSW, Australia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
  #16 (permalink)  
Old December 5th, 2006, 06:47 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
  #17 (permalink)  
Old December 6th, 2006, 09:30 AM
Registered User
 
Join Date: Oct 2006
Location: Sydney, NSW, Australia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

  #18 (permalink)  
Old December 6th, 2006, 09:36 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

You're welcome.

Good luck with getting the shops up and running....

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.
  #19 (permalink)  
Old December 6th, 2006, 01:33 PM
Registered User
 
Join Date: Oct 2006
Location: Sydney, NSW, Australia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #20 (permalink)  
Old December 6th, 2006, 01:52 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Peter,

I haven't tried this myself, but I think you can set the path attribute of the <forms> element in the <authentication> node in web.config. It looks like each authentication cookie is set to a different path so one application doesn't see the other.

See here for more details: http://msdn2.microsoft.com/en-us/library/1d3t3c61.aspx

Cheers,

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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instant Results Modification of webshop problems malex BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 March 8th, 2007 04:12 PM
Modification on records.....one by one. akshay_rangar ASP.NET 2.0 Basics 0 January 26th, 2007 12:57 PM
Webshop Modification saf BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 November 3rd, 2006 07:49 PM
Kernal Modification!!HOW????? harsh_hot Linux 3 May 28th, 2006 09:23 PM
Installation package modification eelisMX Pro VB.NET 2002/2003 0 April 20th, 2005 03:34 AM



All times are GMT -4. The time now is 10:43 AM.


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