Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

asp.net 2.0 not code in separate file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tshad - 08 Dec 2007 06:19 GMT
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
Juan T. Llibre - 08 Dec 2007 07:37 GMT
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/
======================================
>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.
[quoted text clipped - 7 lines]
>
> Tom
tshad - 14 Dec 2007 07:56 GMT
> re:
> !> I want to put the code in the same file
[quoted text clipped - 6 lines]
> 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/
[quoted text clipped - 13 lines]
>>
>> Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.