Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 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 February 13th, 2009, 11:17 AM
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Management Chapter Listing 8-30

Hi,

I have added the CustomerOrders.xsd file in the App_Code folder, also added the Customers and Orders Table Adapters on it. But when i try to make a instance CustomerOrders, CustomersTableAdapter, OrdersTableAdapter i am not able to access the classes as shown in the listing 8-30.

There is no namespace CustomerOrdersTableAdapters as shown in the listing.
 
Old July 2nd, 2010, 01:25 PM
Authorized User
 
Join Date: Aug 2009
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you set up your solution as a "web project" instead of a "web site", the app_code folder isn't supported as you expect. You can still use it, but the code in that folder isn't compiled automatically, and consequently won't be available in intellisense. You can fix this by clicking on the "show all files" button in the "Solution Explorer" window (if you don't already have it showing all files). Next, expand the App_Code folder and the CustomerOrders.xsd. You should see a file named "CustomerOrders.designer.vb" (or CustomerOrders.designer.cs if you're working with C#). Right click on that file and select "Properties". In the Properties window, set the "Build Action" property to "Compile". That should make the classes (at least the "public" ones) available to the rest of your project and intellisense.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to query for data by 30-mins interval sunny76 Access 2 June 19th, 2008 11:52 AM
data access and management kaliaparijat C# 1 May 30th, 2008 02:55 AM
Data management,access and storing kaliaparijat C# 2005 1 May 30th, 2008 02:54 AM
Chapter 3 Listing 3-15 stanguss BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 3 December 7th, 2007 06:17 PM
Data management with ADO.NET GriffithsJ BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 13th, 2006 12:57 PM





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