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

August 13th, 2010, 01:16 PM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 13th, 2010, 07:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 13th, 2010, 09:20 PM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

August 14th, 2010, 03:27 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 14th, 2010, 08:15 AM
|
|
Authorized User
|
|
Join Date: Jun 2010
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

August 14th, 2010, 08:37 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |