Re: Reuse code on multiple pages of project
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Mon, 5 Sep 2005 16:37:30 -0400
re:
> If you use Visual Studio it will do the compile for you and place it in the bin
> directory AFAIK.
Not if the source code file is in the bin directory, and only if
ASP.NET 2.0 is being used *and* the source code is dropped
in the App_Code dir, as you point out.
Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================
"tom pester" <Tom.PesterDELETETHISSS@xxxxxxxxxx> wrote in message
news:a1a977a213f4ed8c78080725abd04@xxxxxxxxxxxxxxxxxxxxx
>
> If you use Visual Studio it will do the compile for you and place it in the bin
> directory AFAIK.
>
> If you are able to make the swithc to asp.net version 2 I suggest you make it cause it
> makes these things easier:
> drop the class file in the App_Code folder and after importing the namespace you are
> ready to go.
>
> Cheers,
> Tom Pester
>
>> re:
>>
>>> Is there a way one can include a class file (no assembly),
>>> let it be JIT compiled and referenced from a code behind file,
>>> which is also JIT compiled using the src-attribute on the
>>> @page directive?
>> Short answer : no.
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> ASP.NET FAQ : http://asp.net.do/faq/
>> =============================
>> "Manso" <Manso@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:0E7141CA-4148-40D7-94C8-E3D92D02CB96@xxxxxxxxxxxxxxxx
>>
>>> Alright, I got a bit confused (in an earlier posting you wrote that
>>> the class file gets compiled after a drop in the bin dir, which was
>>> all new to me). So, back to square one. Is there a way one can
>>> include a class file (no assembly), let it be JIT compiled and
>>> referenced from a code behind file, which is also JIT compiled using
>>> the src-attribute on the @page directive?
>>>
>>> Hope you get what I'm trying to do here. It can be done using the
>>> "@assembly src" directive in an aspx/ascx file so perhaps there might
>>> be a non-declarative way of doing it?
>>>
>>> Thanks in advance.
>>> Manso
>>> "tom pester" wrote:
>>>>> It should get compiled by default when dropping it in bin,
>>>>> shouldn't it? Have you tried and know that it works? I can't see
>>>>> how it can work. Example:
>>>>>
>>>> No it's not compiled by default in asp.net v1.
>>>> (in asp.net v2 there is a special dir app_code that does what you
>>>> describe).
>>>> Let me know if it helped you or not...
>>>>
>>>> Cheers,
>>>> Tom Pester
.
- References:
- Re: Reuse code on multiple pages of project
- From: Juan T. Llibre
- Re: Reuse code on multiple pages of project
- From: tom pester
- Re: Reuse code on multiple pages of project
- Prev by Date: Re: Reuse code on multiple pages of project
- Next by Date: Using .NET to Create and Maintain IIS Virtual Directories
- Previous by thread: Re: Reuse code on multiple pages of project
- Next by thread: ASP.net Not Running?
- Index(es):
Relevant Pages
|