 |
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
|
|
|
|
|

June 29th, 2009, 08:01 AM
|
|
Authorized User
|
|
Join Date: Apr 2009
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

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

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

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

July 2nd, 2009, 07:02 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

July 2nd, 2009, 07:25 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Excellent; have fun with the remaining chapters...
Cheers,
Imar
|
|
 |