473,473 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

asp.net 2.0 not code in separate file

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
Dec 8 '07 #1
2 1328
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".


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"tshad" <tf*@dslextreme.comwrote in message news:eS**************@TK2MSFTNGP06.phx.gbl...
>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

Dec 8 '07 #2

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
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
>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"tshad" <tf*@dslextreme.comwrote in message
news:eS**************@TK2MSFTNGP06.phx.gbl...
>>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


Dec 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
253
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I want to create a project for an existing site...
4
by: Michael | last post by:
Hi When I New a web site, the default coding model is code-separation. I can uncheck the "place code in separate file" checkbox when I add a new WebForm, and VS2005 will remember this setting. ...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.