Wrox Programmer Forums
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 April 10th, 2006, 03:52 PM
Registered User
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot View Souce Code


I have loaded the code for the Photo Album as recommended but everytime i try to view the source code for certain pages(most pages.. e.g addcollection.aspx) , i get an error message box saying

"Microsoft Visual Studio has encountered a problem and needs to close."

Why can I not view the code? I got it off the cd and followed the instructions.
I also did the same with code downloaded from here and still same thing happens. What could be the problem?

Old April 10th, 2006, 04:31 PM
Registered User
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Problem fixed.
Don't know why but I couldnt view any other projects without the thing closing down! Just rebooted and now all's well!

Sorry if I wasted anyone's time!

Old April 10th, 2006, 05:33 PM
Authorized User
Join Date: Feb 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shawn Livermore Send a message via Yahoo to Shawn Livermore

No Problem! How is the photo album working for ya?


Shawn Livermore
Old April 10th, 2006, 06:52 PM
Registered User
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

It's going better now that i seem to have my box sorted.
Another qn though:
What is the difference between using straight filename.vb class pages in the app-folder and just having them appear under the aspx files as filename.aspx.vb files?

I guess my question is "what is the app_folder really for and do I NEED to use it to place my vb files into?"


Old April 11th, 2006, 12:45 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi Felix,

The nested files, like Default.aspx.vb are code behind files for specific ASP pages. By default, VWD puts them at the same location as the aspx page, and displays them as nested items. Makes sense, IMO, because the two are tightly coupled. I think you could move those files to the App_Code folder and then manually update the file reference in the page directive of the APSX page. Not very convenient though.

The App_Code folder is a special folder for all code not related to pages. You'll see that a number of chapters in the book use the App_Code folder for a Business and a Data Access layer, to separate business, data access and presentation stuff. The code in the App_Code folder is "faceless" code; that it, it doesn't provide a user interface and instead supplies a service to ASPX pages in the presentation layer.

The folder is also used for stuff like Typed Datasets.

Does that answer your question?

Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Old April 14th, 2006, 07:23 AM
Registered User
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

yes thanks for the help.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Souce Code Not found (WINDOWS SHELL PROGRAMMIN) Hakeem Visual C++ 1 May 2nd, 2011 02:53 PM
View Code ag19702004 Visual Studio 2005 0 September 7th, 2006 02:47 PM
Souce sode for book PROFFESSIONAL Java Server Prog albenaiz All Other Wrox Books 1 December 14th, 2004 04:18 PM
page souce state Beginning VB 6 0 October 30th, 2004 04:19 AM
about souce code of professional java sevlets 2.3 j.za Servlets 3 September 10th, 2003 01:53 AM

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