1
  1. I created folder "Test" under my web site root.
  2. Under this folder I created another App_Code folder and put my class code there.
  3. I also add default.aspx under Test folder.

In my code behind I cannot access class code. Only classes under top App_Code is available.

How can I access code under second App_Code? I tried to add same namespace for page and class, but this does not help.

3
  • Is this a web site project or a web application project? And are you trying to embed one site inside another? Commented Apr 14, 2015 at 18:43
  • Are these files (your class code) included in the project or are they just in the directory structure? Commented Apr 14, 2015 at 18:47
  • I have web site project. Class code include in project Commented Apr 14, 2015 at 18:51

1 Answer 1

2

You must put all class code inside the App_Code folder from the root folder. One trick would be to create a Test folder inside the main App_Code folder. You are allowed to put as many subfolders as you need.

https://msdn.microsoft.com/en-us/library/t990ks23(v=vs.140).aspx

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.