Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 13th, 2010, 01:16 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 - Global Application Class

Hello,

I'm on the Try It Out that starts on p. 602 (Chapter 17). Step 1 wants us to add a new Global Application Class. I do not see this template. Is this something that has been removed from MVS 2010?

Jason
Reply With Quote
  #2 (permalink)  
Old August 13th, 2010, 07:10 PM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Quote:
Is this something that has been removed from MVS 2010?
Certainly not. The Global Application Class is still an important class and as such should be alive and kicking in VDW / VS 2010.

Are you sure you're right-clicking the root of the web site and not some other folder such as App_Data?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old August 13th, 2010, 09:20 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I am clicking on the root website. These are my options when I try to add a new item:

MyBasePage
Web Form
Master Page
Web User Control
ADO.NET Entity Data Model
ADO.NET EntityObject Generator
ADO.NET Self-Tracking Entity Generator
AJAX-enabled WCF Service
Browser File
Class
Class Diagram
Crystal Report
DataSet
Dynamic Data FIeld
Generic Handler
HTML Page
JScript File
LINQ to SQL Classes
Preprocessed Text Template
Report
Report Wizard
Resource File
Silverlight 1.0 JScript Page
Silverlight Application
Silverlight-enabled WCF Service
Site Map
Skin File
SQL Server Database
Style Sheet
Text File
Text Template
WCF Data Service
WCF Service
Web Configuration File
Web Service
XML File
XML Schema
XML To Schema
XSLT File

Nothing for Global Application Class. If it's supposed to be there and it's not, is there a way I can get it or download it?

Jason
Reply With Quote
  #4 (permalink)  
Old August 14th, 2010, 03:27 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Could it be that you already have the Global.asax file in your project? When the file is already there, it doesn't show up in the Add New Item dialog. If you don't see it, check the folder on disk; maybe the file is hidden in VWD?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #5 (permalink)  
Old August 14th, 2010, 08:15 AM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, that is the issue. It looks like VS 2010 automatically puts the Global.asax file into your website. Thanks for pointing out that possibility!
Reply With Quote
  #6 (permalink)  
Old August 14th, 2010, 08:37 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

It depends on the site type you choose when you create a site. It's part of the ASP.NET Web Site, but not part of the ASP.NET Empty web site.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
Reply


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
Chapter 17 Page 608 Try It out - Debugging your application ceboc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 November 24th, 2009 12:46 PM
Add Class grayed out - Ch. 17 dvdstwrd BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 0 August 15th, 2009 01:41 PM
using Class in Global.asax oveisi Classic ASP Components 1 July 21st, 2008 03:42 PM
Global declaration of a class object nrlahoti ASP.NET 2.0 Professional 5 October 14th, 2007 01:21 PM
Using Global.asax varialbles in a class.vb file sougata ASP.NET 1.0 and 1.1 Basics 3 June 30th, 2005 07:33 AM



All times are GMT -4. The time now is 03:28 PM.


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