Wrox Programmer Forums
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 December 22nd, 2008, 05:41 AM
Friend of Wrox
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default Need of Helper and Global classes


I am going through this book explaining "TheBeerHouse" project.

What is the necessity of Globals.cs class if we are having Helper.cs class

We can have the ThemeSelectorId is Helper.cs class itself

Can anybody clear me?

Old December 22nd, 2008, 06:14 PM
Lee Dumond's Avatar
Wrox Author
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts

This is probably a matter of style more than anything else.

"Helpers" classes generally contain methods, and "Globals" classes generally contain properties. A lot of developers like to split things up like that.

If you don't care for that style, you could easily blend the Globals properties into the Helper class.
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

if (this.PostHelpedYou)

Similar Threads
Thread Thread Starter Forum Replies Last Post
unistalling Browser Helper Object maricar C# 0 October 7th, 2008 08:53 PM
1 quest on view helper hiteshp Struts 0 January 28th, 2008 03:06 AM
Helper Methods & Wrapper Classes? crazy ASP.NET 2.0 Basics 0 February 9th, 2007 12:31 PM
'helper' function? jtyson ASP.NET 1.0 and 1.1 Basics 1 June 29th, 2004 08:12 AM

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