Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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 November 26th, 2015, 09:09 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating Tables in the Table Designer

I opened the SSMS and logged in to the LocalDB SQL Server; but, the Solution Explorer in which SSMS launched was empty. It did not appear in the Chapter 12 website.

How do I connect it with the Chapter 12 website. I had Chapter 12 opened, but SSMS did not connect with it.
 
Old November 27th, 2015, 05:14 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,

In SSMS you need the Object Explorer, not the Solution Explorer (which indeed will be empty).

I don't understand what you mean with:

>> It did not appear in the Chapter 12 website. How do I connect it with the Chapter 12 website. I had Chapter 12 opened, but SSMS did not connect with it.

Can you elaborate?

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 November 27th, 2015, 12:00 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating the SQL Server Sample Database

I downloaded the code for Beginning ASP.NET 4.5.1: in C# and VB and have been using the code since Chapter 9. When I did the Creating the SQL Server Sample Database Try It Out, the Object Explorer opened with the Solution Explorer in Chapter 12.

Therefore, I thought that the databases created would go to the Databases folder that was created at the beginning of the Try it out.

Similarly, when the paths C:\BegASPNET\Site\App_Data were entered in SSMS, I thought the databases would be located in C:\BegASPNET\Site\App_Data for Chapter 12.
 
Old November 27th, 2015, 01:09 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I still don't understand what you're saying. Is the issue resolved now?

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 November 27th, 2015, 02:47 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating the SQL Server Sample Database

It does not work. I get the same error message as my other post except this time it is for "PlanetWrox" instead of "PlanetWroxTemp".

The way I have the folders set up is "C:\BegASPNET\Source\Chapter12
 
Old November 27th, 2015, 03:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> The way I have the folders set up is "C:\BegASPNET\Source\Chapter12

What does that mean? Is that where you build your site? This is where the source that comes with the book is located so this will likely lead to conflicts. The book has you use C:\BegASPNET\Site instead.

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 November 27th, 2015, 04:54 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating Tables in the Table Designer

Actually, I stored the code as follows "OneDrive\BegASPNET". Inside BegASPNET, I put the Release, Resource, and Source folders. I thought by doing this I would be able to work on the exercises using my Surface Pro 3 when I was not at my desk.

Since Chapter 9, I would use BegASPNET as my initial website but would click on the chapter folder that I was working on. The chapter contents would become my new website. Most of the time I did not have to type in the bold faced code since it was already there.
 
Old November 27th, 2015, 05: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're not very specific about what you do so I can only guess; "but would click on the chapter folder that I was working on." is quite meaningless and doesn't tell me much.

As explained in the introduction of the book, you can't open C:\BegASPNET\Source and then browse to the chapter folders separately; especially the later chapters need to be in the root of the site, while this setup would lead to something like C:\localhost:12345/Chapter12/SomePage.aspx which will cause all kinds of issues. In general you should the Source folder as a reference and build your own site (and optionally copy files in from the Source folder).

Using OneDrive might work, but no guarantees. It should work OK for plain text files but you'll run into issues with SQL Server databases as you'll get file locks.

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 November 27th, 2015, 05:39 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Thumbs up Chapter 12: Creating Tables in the Table Designer

Thank you very much.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 12: Creating the SQL Server Sample Database phztfte1 BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 8 November 27th, 2015 06:03 PM
Ch 12 - Creating Tables adkybe BOOK: Beginning ASP.NET 4.5 : in C# and VB 1 January 25th, 2014 11:11 PM
Chapter 12:Creating Registration Form hozdaman BOOK: Beginning ASP.NET Web Pages with WebMatrix 8 February 11th, 2012 07:44 PM
Creating database and tables. chapter 9 PeterJB BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 August 1st, 2006 06:52 AM
chapter 12, can't set up tables robtho BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 January 7th, 2006 04:38 PM





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