Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 10th, 2006, 03:52 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot View Souce Code

Hi

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?

Felix
  #2 (permalink)  
Old April 10th, 2006, 04:31 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!

  #3 (permalink)  
Old April 10th, 2006, 05:33 PM
Authorized User
 
Join Date: Feb 2006
Location: Corona, CA, USA.
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
Default

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



Thanks,

Shawn Livermore
MCAD, MCSD, PMP
shawnlivermore.blogspot.com
  #4 (permalink)  
Old April 10th, 2006, 06:52 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

felix

  #5 (permalink)  
Old April 11th, 2006, 12:45 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #6 (permalink)  
Old April 14th, 2006, 07:23 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes thanks for the help.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:46 AM.


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