Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 October 26th, 2011, 11:00 AM
Authorized User
 
Join Date: Apr 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 15: Login Controls & Database Connections

Hi, this is related to mainly Chapter 15, but parts from Chapter 11-14 as well.

I am building a website similar to the one that is built in this book. I have a database in which I have several tables. On my website I can display data from the database, update and delete. Then I also have a login control, as I want users to be able to login and for example comment on news updates.

In Chapter 15, Page 543 and forward, the WSAT is used to manage accounts and such. This works perfectly for me, but now comes the "tricky" part. The WSAT automatically creates a new database with all required tables etc, but I want to use and administrate my own database. I want the users to be registrered in my database, not in the ASPNETDB database that is created. How do I do that? I have tried clicking "Exclude from project" on the ASPNETDB database, and my ConnectionString in my web.config file has my own database in it, so I don't understand what I am doing wrong.

Help would be much appreciated.
 
Old October 29th, 2011, 09:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at Appendix B, page 702 and further to learn how to use a tool called aspnet_regsql to merge the two databases.

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 October 30th, 2011, 01:00 PM
Authorized User
 
Join Date: Apr 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I've looked into this but the client can't find my database. I suppose I havn't specified the correct location, how do I do that?
EDIT: The book says I should write [local]/SQLExpress, but my database is not located there, but in a specific folder. How do I specify that?

Cheers

Peter

Last edited by Filespit; October 30th, 2011 at 01:02 PM..
 
Old October 30th, 2011, 01:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can create a connection when using aspnet_regsql in wizard module (if you run it by double-clicking it in Windows). Alternatively, when you run the tool from the command line you can supply connection details. Type aspnet_regsql /? at the command prompt for more details.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login & CreateUserWizard controls remember me?? robbaralla BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 November 14th, 2009 06:33 AM
code chapter 14 & 15 pierrethienpont BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 1 February 24th, 2007 03:26 PM
Opening & Closing Database connections pauliehaha Classic ASP Databases 4 December 18th, 2006 08:50 AM
Chapter 15 15_1 & 15_2 and setting up SQL server a3321889495 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 July 13th, 2006 06:19 AM
Chapter 15 Forum Login Failure Indigo11 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 November 30th, 2004 12:22 PM





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