Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 16th, 2006, 02:55 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
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


  #2 (permalink)  
Old October 16th, 2006, 08:10 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

using MB.TheBeerHouse;

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


Thanks alot for pointing it out!

--fluffy

 


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



All times are GMT -4. The time now is 09:51 AM.


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