Code behind file in separate folder

P

Pavan Apuroop

Hi All,

I am creating a web application using ASP .Net 2.0 Beta 2.

I want to place all my code behind files in a special folder (App_Code) and
access them in my web application.

I have done the same in ASP .Net 2.0 Beta 1. But now Beta 2 is not allowing
me to do so.

It is saying CodeBehind file in a special directory, which is not allowed.

Please share your views in this regard,

Cheers,

Pavan
 
J

Juan T. Llibre

re:
I want to place all my code behind files in a special folder (App_Code)
I have done the same in ASP .Net 2.0 Beta 1.

Are you sure ?

That's strange because in Beta 1, the directory was named "Code".
The special directory "App_Code" was introduced in Beta 2.

re:
It is saying CodeBehind file in a special directory, which is not allowed.

When you create a new class file in Beta 2,
aren't you prompted to place the file in the App_Code directory ?

You should be.

However, if you are just writing code-behind ( .vb, .cs, etc. ) for an ASPX
page, that code-behind should go in the same directory as your ASPX file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top