Link to home
Start Free TrialLog in
Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on

App_Code directory

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.
Avatar of samtran0331
samtran0331
Flag of United States of America image

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.
Avatar of Starr Duskk

ASKER

What about a class sub directory? or sub directories based on class functionality?

ASKER CERTIFIED SOLUTION
Avatar of samtran0331
samtran0331
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
great! thanks!
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"?
I created it with New Website and I open it with Open Website, but how would I know otherwise?

It works fine for me.