473,408 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Subdirectories in an application

Hello,

I need to put some files in a subfolder because I don't want all
the files in the subfolder to be under form authentication.

The problem is that in the root folder I have a "App_code" folder,
where I have clasess to instanciate. This clases are not accesible
from the aspx's located in the directory.

My configuration look like this.

- My_App_Example_Folder
-login.aspx
-changepwd.aspx

- App_code
- MyClass.vb

- New_Subfolder
- hello.aspx
- hello2.aspx
I had to declare New_Subfolder as an Application virtual Directory.
¿Do I have to?
And the main problem. Why is Myclass.vb not visible from hello.aspx??.
Thank you very much for your help.

Jun 27 '08 #1
2 988
Why not compile the stuff that you got on the App_Code folder as a DLL?,
That way you can put it on the bin folder and use it through the whole app
(and even other apps).

"Miguel" <ma*******@gmail.comwrote in message
news:37**********************************@p25g2000 hsf.googlegroups.com...
Hello,

I need to put some files in a subfolder because I don't want all
the files in the subfolder to be under form authentication.

The problem is that in the root folder I have a "App_code" folder,
where I have clasess to instanciate. This clases are not accesible
from the aspx's located in the directory.

My configuration look like this.

- My_App_Example_Folder
-login.aspx
-changepwd.aspx

- App_code
- MyClass.vb

- New_Subfolder
- hello.aspx
- hello2.aspx
I had to declare New_Subfolder as an Application virtual Directory.
¿Do I have to?
And the main problem. Why is Myclass.vb not visible from hello.aspx??.
Thank you very much for your help.


Jun 27 '08 #2
Put another web.config into the subfolder and write authentication or the
lack thereof into that web.config which will manage that subdirectory. How
to do this is all over the web and MSDN2 where you can find documentation.

"Miguel" <ma*******@gmail.comwrote in message
news:37**********************************@p25g2000 hsf.googlegroups.com...
Hello,

I need to put some files in a subfolder because I don't want all
the files in the subfolder to be under form authentication.

The problem is that in the root folder I have a "App_code" folder,
where I have clasess to instanciate. This clases are not accesible
from the aspx's located in the directory.

My configuration look like this.

- My_App_Example_Folder
-login.aspx
-changepwd.aspx

- App_code
- MyClass.vb

- New_Subfolder
- hello.aspx
- hello2.aspx
I had to declare New_Subfolder as an Application virtual Directory.
¿Do I have to?
And the main problem. Why is Myclass.vb not visible from hello.aspx??.
Thank you very much for your help.

Jun 27 '08 #3

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

Similar topics

1
by: Thieum22 | last post by:
Hi, I try to go through a directory and it's subdirectories to reah the properties of each files. But I have a problem to set active the directory where the files are, in order to display their...
21
by: AES/newspost | last post by:
My understanding -- I'm not an expert -- is that on (some? many? all?) standard Internet servers a URL can point to a subdirectory name followed by a backslash, and that links to this URL will...
2
by: Arjen | last post by:
Hello, I want to make a command line application that search for *.htm* files inside directories and subdirectories. 1. How can I save all the *.htm* files inside directories and...
9
by: craigkenisston | last post by:
Hi, I'm writing an HttpModule in order to replace the parameters in the aspx pages to look like subdirectories. i.e. instead of having : myexample.com/default.aspx?category=cat1&subcat=cat2...
3
by: Brian F | last post by:
Ok here goes: WEBSITE main directory allows anonymous users fine. SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to graphics and javascript in the main virtual...
1
by: Benton | last post by:
Hi there, I want to have an unrestricted root directory and some protected subdirectories on my ASP.NET 2.0 application. I want each subdirectory to have its own Login.aspx page. The...
2
by: kamalak | last post by:
hi, can someone help me in writing code in C# for getting the no of files in a directory and all its subdirectories and their subdirectories where the no of subdirectories and their...
2
by: dj | last post by:
Hello All, I am attempting to us os.walk to populate two lists with values from a directory. The first list contains all the files in the directory and subdirectories. The second list contains...
4
by: Laharl | last post by:
My Operating Systems professor has assigned homework that basically boils down to implementing ls -lra, but with a different output format. In other words, list the files and subdirectories (and a...
10
by: beary | last post by:
Hello all, I've done something a bit stupid and am hoping some kind soul out there can help me out. There's a piece of code that goes through and creates a high number of subdirectories within...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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...
0
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,...
0
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...

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.