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 October 16th, 2006, 02:55 AM
Authorized User
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scope resolution problem


Hello!
I'm trying to build a custom control for theme slection according to
chapter two...And I'm having some troubles with scope resolution. Specifically, I have a "C:\...\TheBeerHouse\App_Code\Helpers.cs" file.
This file has a function called "GetThemes()".

And I have a conrol ThemeSelector.ascx control which is located in
"C:\...\TheBeerHouse\Conrols".

Now, in my code file for the control (located in "C:\...\TheBeerHouse\Controls\ThemeSelector.ascx.c s") I've got the function:

   protected void Page_Load(object sender, EventArgs e)
    {
        ddlThemes.DataSource = Helpers.GetThemes();...
     ...}

And I'm getting an error saying that the name "Helpers" does not
exist in the current context.

So my question is, how do I call this function in Helpers.cs so that
the compiler will recognize the path ???

Thank you so much for any suggestions!!
=0)
--fluffy


 
Old October 16th, 2006, 08:10 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

using MB.TheBeerHouse;

(or what ever name you chose?)
 
Old October 16th, 2006, 09:37 AM
Authorized User
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thanks alot for pointing it out!

--fluffy






Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterator Scope Problem smokey_gun Javascript How-To 1 July 4th, 2007 01:26 AM
Problem with Page Resolution Narendra9681 ASP.NET 1.x and 2.0 Application Design 5 April 27th, 2007 08:05 AM
MAP - Problem with screen resolution tgopal HTML Code Clinic 1 September 1st, 2004 10:28 AM
scope problem jc Javascript 0 July 29th, 2003 09:27 AM





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