473,508 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best Place to Put Class Accessible to All "Folders"

Warning: Tenderfoot

I'm playing around with ASP.Net 2.0 b2. The web app I've created has a
default, login, recovery, etc. pages in the root and two folders
accessible to authenticated users only. I have a simple class that
needs to be accessible to the two subfolders mentioned above. I placed
this class in App_Code and declared it Friend/Internal. However, I
can't access it in the two subfolders unless it's declared Public.

I thought Friend/Internal meant that I could access the class from
anywhere in this project, but not from outside it. Should I be using
App_GlobalResources, App_LocalResources folders (or something else), or
am I just wrong regarding Friend/Internal classes?

Thanks,
Johnny

Nov 19 '05 #1
2 1042
Hi Johnny:

I thought Friend/Internal meant that I could access the class from
anywhere in this project, but not from outside it. Should I be using
App_GlobalResources, App_LocalResources folders (or something else), or
am I just wrong regarding Friend/Internal classes?


Internal means you can access the class from inside the same assembly.
Unfortunately stuff in App_Code goes into one assembly and ASPX
webforms code goes into a second.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #2
Thanks for your help.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1515
by: Tom Vogel | last post by:
This problem happens like every half our. I can build or rebuild a project and start the debugger just fine. But every now and then, a Confgiration Error, "Access is denied: 'myproject' is shown,...
5
2180
by: Konrad L. M. Rudolph | last post by:
I hope this is the right NG, please notify me if not. I have got a problem with the "recent files" list of the start page in VS.NET: yesterday I created a new projekt which has the same name as...
1
8495
by: Dave | last post by:
I am getting te following error in a ASP.Net app that is running on Win XP Pro (SP2): Server cannot access application directory 'C:\Documents and Settings\dave\My Documents\My Visual Studio...
8
4410
by: Just Me | last post by:
1)How can I find the folders like "My Recent Document", "Desktop", "My Pictures",... if I want to store a file there? 2) How can I find the icon for those files if I want to display it? ...
3
304
by: Mitchell Vincent | last post by:
I've been somewhat confused about what the "proper" place is to store data files (like file based databases) for my applications. With all the different "special" folders available, which is the...
4
1929
by: Klaus Jensen | last post by:
Hi I created code to allow me to rewrite urls from global.asax, so that if the incoming Url is for instance: /Hats/ReallyCoolHat.aspx ....I look up ReallyCoolHat in the products table and...
0
1094
by: Clive Dixon | last post by:
When working with lots of associated "supporting" classes alongside classes (by this, I mean things such as associated component editor classes specified by , debugger proxy classes specified by ...
3
1634
by: toyaxxx | last post by:
Hello guys, I have hit a dead end in trying to solve this problem. The thing is, I can't run the the program here because it has to run on a server which is in another place. All I receive here is...
0
7228
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.