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 June 29th, 2009, 08:01 AM
Authorized User
 
Join Date: Apr 2009
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap 13 pg 428: Where is the LInq to SQL class?

Hello,
Page 428 asks to click add new item and then the Linq to SQL class after right clicking the app code folder.

No such class exists with the following window. I do however notice that the app_code folder is grey.

I have right clicked the about folder and has more classes but not linq to sql class

The App_Code folder is also grey in colour as is the App Themes folder.



Thanks

Tomche
 
Old June 29th, 2009, 08:06 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,

What items do you see when you bring up the Add New Item dialog by right-clicking the App_Code folder? Can you show a screenshot somehow?

Did you create a Web Site Project rather than creating a Web Application Project? (That is, did you choose File | New Web Site or File | New Project when you started the Planet Wrox project?

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 June 29th, 2009, 08:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

BTW: although not required, please consider posting a follow up message when you get a reply to one of your posts. I just checked all of your nine posts; I replied to all of them sometimes with follow up questions but never heard back from you on any of them except for one. Of course you don't have to, but doing so helps me and others determine if the problem can be fixed with the solution I gave. And of course it's always nice to hear "it works".... ;-)

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 July 2nd, 2009, 06:54 AM
Authorized User
 
Join Date: Apr 2009
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Linq to SQL

Hello Imar,
My apologies for not responding I will make a greater effort in future.

When I right click the app-code folder it allows me to add New Item.

When I go into the add New Item I see a window that says Templates.Underneith where it says Templates it says Visual Studio Installed Templates. Underneith that it says Class DataSet Text File

Underneith that it says My Templates
Here it then says MyBasePage and then another icon says Search Online Templates.

My site is saved as a Web Site not as a Project because I can't open it as a project from the File menu.

Thanks so much for your help.

Regards

Thomas
 
Old July 2nd, 2009, 07:02 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 Thomas,

No problem.....

Sounds like you're running as a .NET 2.0 project.

Try this:

1. Right-click the project in the Solution Explorer and choose Property Pages

2. On the References tab, do you see references to 2.0 or 3.5 assemblies?

3. Switch to the Build tab. Is .NET Framework 2.0 or 3.5 selected here? In the former case, switch it to 3.5 and try again.

Hope this helps,

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 July 2nd, 2009, 07:23 AM
Authorized User
 
Join Date: Apr 2009
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Imar,
Thanks for getting back so quickly.

The references tab had 3.5 but the Build tab had 2.0 in the target framework.

I changed it to 3.5 and can now see the Linq to SQL

Thanks again for your help.

Thomas
 
Old July 2nd, 2009, 07:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Excellent; have fun with the remaining chapters...

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
Migrating to Linq to Sql (pg. 16/18) question Rachel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 19th, 2009 03:15 PM
LINQ: Chapter 13, the first example cannot be run clark BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 January 15th, 2009 08:41 AM
LINQ Error ? Chapter 13 workidoo BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 22nd, 2008 09:37 AM
return *this - Chap 8 pg 418 proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 0 March 10th, 2007 01:19 PM
Chap 13 ExampleServlet granola911 JSP Basics 0 October 20th, 2003 03:49 PM





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