467,907 Members | 1,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

shared code behind file in Asp.Net 2.0

Hello,

In Asp.Net 1.1, I am using a single code behind file that is shared by
multiple Aspx pages and a second shared code behind file for Ascx user
controls. The VS 2003 IDE is a bit quirky, moving the code behind file
around when I open a page, but the application works fine.

Now I am trying to upgrade to Asp.Net 2.0. This is also working fine if my
shared code behind file is not in the App_Code folder. If I drag it into
the App_Code folder, I get the following error:

Error 4 The file '/WebSiteCS/App_Code/sharedpage.aspx.vb' is in the special
directory 'App_Code', which is not allowed.

Guess this means the shared code behind should not be in the App_Code
folder? Just wanted to make sure.

Thanks,
John
Dec 1 '05 #1
  • viewed: 846
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by tshad | last post: by
2 posts views Thread by Ibrahim. | last post: by
5 posts views Thread by Tim | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.