Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

App_Code directory

Posted on 2007-12-03
6
403 Views
Last Modified: 2012-06-27
In asp.net, in the App_Code directory, is there a way to separate the classes from the datasets?

Can I put in sub directories?

And if I do, how does the application know which directory to find it in?
thanks.
0
Comment
Question by:Starr Duskk
  • 3
  • 3
6 Comments
 
LVL 37

Expert Comment

by:samtran0331
ID: 20396451
Yes, you should be able to create a "Datasets" subdirectory under the App_Code folder.

>>And if I do, how does the application know which directory to find it in?

In general, code files in App_Data is either going to be pre-compiled by you or compiled at runtime by .Net.
I'm not quite sure if this holds true for all *.xsd files (regardless of their location), but I was able to create a Datasets folder under the App_Code folder, put a dataset.xsd file into it, and on a page in the root call it and bind it to a grid.
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20396623
What about a class sub directory? or sub directories based on class functionality?

0
 
LVL 37

Accepted Solution

by:
samtran0331 earned 500 total points
ID: 20396823
Just tested by creating this folder structure:
App_Data
--Datasets
----Northwind.xsd
--MathClasses
----cMath.vb
--StringClasses
----cString.vb

And from a page in the root, I could call the Northwind dataset, and functions in both classes.

I can't find any "proof positive, here it is in black and white" documentation, but it's my understanding that the folder structure under App_Data isn't going to really matter until you start testing it against different compilation methods.
The only time the App_Data folder structure matters is when you have both C# classes and VB classes, then the class files have to be in different subfolders and you have to add to the web.config so that the runtime knows to compile one folder into VB and the other into C#
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 2

Author Closing Comment

by:Starr Duskk
ID: 31412355
great! thanks!
0
 
LVL 37

Expert Comment

by:samtran0331
ID: 20396919
I'm going to need to test this further.
My posts above are using a "Web Application Project" and everything is accessible and works.

I created a "Web Site" project and it isn't holding true (I'm thinking I need to pre-compile for it to work)...are you using "Web Application" or "Web Site"?
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 20397094
I created it with New Website and I open it with Open Website, but how would I know otherwise?

It works fine for me.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question