asp.net 2.0 not code in separate file

T

tshad

I just started using asp.net 2.0 and the book I am looking at shows that you
now have the option to pub your code in separate files (not the default) as
it was in 2003.

I want to put the code in the same file but when I build the web site, I am
not getting that object and I have the files separated into 2 files
(default.aspx and default.aspx.vb as it was in 2003).

How do I create a project that will not do this?

Thanks,

Tom
 
J

Juan T. Llibre

re:
!> I want to put the code in the same file

When you create a new web site, the initial default.aspx created has a code-behind file.

Just delete that initial file and create a new file ("File", New File").

Then, name the file, select the desired programming language
and *unselect* the checkbox which says ""Place code in separate file".
 
T

tshad

Juan T. Llibre said:
re:
!> I want to put the code in the same file

When you create a new web site, the initial default.aspx created has a
code-behind file.

Just delete that initial file and create a new file ("File", New File").

Then, name the file, select the desired programming language
and *unselect* the checkbox which says ""Place code in separate file".
That was what I was looking for.

Thanks,

Tom
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top