Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 24th, 2008, 06:15 PM
Registered User
 
Join Date: Feb 2008
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# Ch 10 Page 362

After following the preceding try it out step by step, when I get to step 5 of the try it out on this page the business object i created in the previous try it out does not appear in the drop down menu of the wizard no matter what I do.

However the previous steps have been done correctly, as if I copy the code at the end of the try it out, the gridview correctly displays the data.

I am using visual web developer express 2008, any ideas?

 
Old February 24th, 2008, 06:24 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Did you compile the application? For the objects to show up in the ODS wizard (if that's what you are talking about) you need to compile the application first.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old February 25th, 2008, 04:21 AM
Registered User
 
Join Date: Feb 2008
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I rebuilt the website after I created my business object. Do I need to do anything else to compile the business object?

 
Old February 25th, 2008, 01:46 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

If the objects are located in App_Data, then no, they are compiled together with the site. Sometimes reopening files or restarting VWD will help as well.

Maybe there is something wrong with your setup or with your site / setup? Here's what I just did and which worked fine:

1. Choose File | New Web Site. Create a new C# web site

2. Added a class called Product to App_Code

3. Inside that class create a new fake method called GetItems that returns List<Product>. The code simply throws an exception to satisfy the compiler.

4. Hit Ctrl+Shift+B to build the site.

5. Added an ODS to Default.aspx in Design View. Got the Product class as expected.

6. Added a new User Control to the site

7. Dragged the UC onto the Design View of Default.aspx. Worked as expected and were able to open the Smart Task panel of the UC.

AFAIK, this is all how it's supposed to work. It works for me every time.

Maybe your situation is different? (I don't have the book, so I don't know the exact steps. In that case, can you elaborate?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old February 25th, 2008, 01:51 PM
Registered User
 
Join Date: Feb 2008
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I have found the answer, and also the answer to my other problem!
It is a little bit stupid!

I was using a directory with part of the name being "c#".
Because the # was not a legal character for this it caused my problems. It also stopped the ASP.NET configuration tool from working.

As soon as I changed the directory name all the problems stopped occurring.

 
Old February 25th, 2008, 01:55 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, that explains a lot. Glad it's working....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004




Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Ch 10 Page 370 - Simple User Control surefire BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 4 February 25th, 2008 01:53 PM
Ch 10 :Data Access Component smsteven BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 July 24th, 2006 05:09 PM
Ch. 10 Directory listing superkooi BOOK: Beginning ASP 3.0 1 March 3rd, 2005 07:39 AM
Problems with the editor example in ch 10 arne Beginning PHP 4 August 21st, 2004 02:24 PM





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