MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

asp.net 2.0 not code in separate file

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet
Author Message
tshad



Joined: 08 Aug 2007
Posts: 9

PostPosted: Sat Dec 08, 2007 3:19 am    Post subject: asp.net 2.0 not code in separate file Reply with quote

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

Archived from group: microsoft>public>dotnet>framework>aspnet
Back to top
View user's profile Send private message
Juan T. Llibre



Joined: 08 Aug 2007
Posts: 14

PostPosted: Sat Dec 08, 2007 8:37 am    Post subject: Re: asp.net 2.0 not code in separate file Reply with quote

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" wrote in message @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
>
Back to top
View user's profile Send private message
tshad



Joined: 08 Aug 2007
Posts: 9

PostPosted: Fri Dec 14, 2007 4:56 am    Post subject: Re: asp.net 2.0 not code in separate file Reply with quote

"Juan T. Llibre" wrote in message
news:%23eb$u0WOIHA.748@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" wrote in message
> @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
>>
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
TCP Webservice trying to use classes from a separate dll I have a TCP webservice which ran fine until I added a dll containing some common objects to webservice. The proxy code generates fine but when I run the client requesting data that results in using objects from the dll I added the client throws an except

Remoting services - versioning in separate app domains Hi all, I'm trying to realize following idea: I have some service class (say Test), with some functions (say void Test1(string input); ). Class is implementing interface (say ITest), which is shared between client and server. Service class is remoted clas

Backup folder to separate directory during un-install Cheers to all - I have a question that I haven't been able to find much documentation on. I have a deployment project where I install a folder containing my application, necessary dll files and other items to that directory. Is it possible to build in a

need code to develop a UI to upload data from .csv file to o hi, I need the code to develop a UI that uploads or inserts data from a ..csv file to the oracle 9i table using any of the java script, jsp, servlets) ony as i am little familiar with these . Its very urgent as i need it. Plzz anyone if th

Seeking tools/source code to interpret CLI code Hi all, I am starting to do some preliminary research in a side project and and looking for your collective wisdom in the area to help. What i want to do is write a CLR that interprets CLI instructions rather than JIT compiling it. I understand enough of
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group