Wrox Programmer Forums
|
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 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 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
 
Old August 13th, 2010, 07:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!
 
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
 
Old August 14th, 2010, 03:27 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!
 
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!
 
Old August 14th, 2010, 08:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!





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





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