473,668 Members | 2,366 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_GlobalResou rces, App_LocalResour ces folders (or something else), or
am I just wrong regarding Friend/Internal classes?

Thanks,
Johnny

Nov 19 '05 #1
2 1053
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_GlobalReso urces, App_LocalResour ces 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
1532
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, marking <add assembly="*" /> in red. The underlying problem is, that one of the sub-folders in C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/projects_myproject/20c1afc0/b75ff3a7 is no longer accessible. When I try to...
5
2190
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 an already existing project stored at another location. Unfortunately, VS.NET doesn't seem to support double names in the "recent files" list: only /one/ entry with the double name is listed and even more unfortunate, it is the one which I don't...
1
8559
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 ASP.NET\MyWebSite\'. The directory does not exist or is not accessible because of security settings. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information...
8
4423
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? Thanks in advance for any helpful suggestions
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 correct one for databases that get updated every time a user runs the application? I need to make sure that Windows 98 users can use my software as well, but I also need make sure that the data file is always accessible at a consistent location...
4
1935
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 rewrite the url to Product.aspx?id=12 if that is the productId for ReallyCoolHat.
0
1104
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 etc. etc.), what kind of project structure do people use along with this? Nested classes within the main class? (What I've used so far, but gets a bit unwieldy in terms of file size once you have lots of such classes within a class.) Separate...
3
1648
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 a logfile with exceptions that happens when they test the program on the server. I'm using VS2005, VB.NET, XP Pro, CDO 1.21 dll Anyway, this function Logs on and traverses through "Public Folders" until it finds a folder I'm looking for. I...
0
8459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8374
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8575
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8653
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7398
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5677
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1783
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.