Wrox Programmer Forums
|
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
 
Old September 28th, 2009, 03:22 AM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Arrow Webshop code in C#

Hello,
I have downloaded code for WebShop (chapter 9). I can change its code files to C# to some extent but not to global file and stored procedures. So can any body help me regarding code for Webshop in C#.

Also I have been working on Asp.Net 3.5 by Imar sir, there were 2 databases. First is default where all info. about users are stored and second database stores info about all Reviews, Photo albums etc.
Now Integrating with Webshop application which handles only one database handling all info (about users as well as products), is there any problem if I store products info. in second database according to Asp.Net 3.5 cause it deals with the profile of user which is managed by application itself.
 
Old September 28th, 2009, 03:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Take a look here:
These articles show you how to use aspnet_regsql to prepare your own database for the ASP.NET Application Services.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 28th, 2009, 04:12 AM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Arrow nice articles

Nice Articles,
These articles will definitely help me a lot, Thanks for such valuable articles.
But for the time being now I'm asking about code in C# for webshop.
Cause I can convert source files (.Vb files) from VB to C# but stored procedures and global file requires some expertise.
And by databases I mean that will there be any problem later when implementing the single database over 2 databases that are same as in your PlanetWrox.com sample databases. Because I am integrating Webshop in my existing (similar to planetWrox.com) project. Because profile for the user is maintained in ASPNETDB.mdf database.
 
Old September 28th, 2009, 05:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If you read the articles I lned to you'll see how to *combine* the ASPNETDB database with your own.

Stored procedures are not tied to a language so there's nothing to convert.

There's not much code in the Global.asax. What's there is also available in the PlanetWrox site, in C# and VB....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 28th, 2009, 05:17 AM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Arrow I am confident well now.......

Thank you Sir, for your kind suggestion. It makes me now confident coz' I was afraid of stored procedures. Now I can start working.

Thank you once again.
 
Old September 30th, 2009, 03:17 PM
Friend of Wrox
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Arrow view states and stored procedures

Hello everyone,
On suggestion of using store procedures as they are because they are not language specific, when I try to create the stored procedures then it generates error like "Invalid Object name [dbo].aspnet_AnyDataInTables"
and the stored procedure looks like

Code:
ALTER PROCEDURE [dbo].aspnet_AnyDataInTables
    @TablesToCheck int
AS
BEGIN
    -- Check Membership table if (@TablesToCheck & 1) is set
    IF ((@TablesToCheck & 1) 


Procedure continues.............
it seems to come out from sql server object aspnet_AnyDataInTables
as there is no such table in database. Please tell me how to fix problem.
Also How to create view states........?
Thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
WEBSHOP TB1962 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 June 2nd, 2009 01:39 PM
Webshop gogetsome BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 March 7th, 2008 03:07 PM
C# code for webshop dhanuka BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 November 29th, 2007 12:10 AM
Webshop modification El Presidente BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 21 December 6th, 2006 03:14 PM
Webshop Modification saf BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 November 3rd, 2006 07:49 PM





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