Re: .ASPX -> .CS generation

From: Cowboy (NoSpamMgbworld_at_comcast.netNoSpamM)
Date: 06/02/04


Date: Wed, 2 Jun 2004 07:38:50 -0500

In .NET 2.0 (Whidbey), the ASPX is compiled in with the C#. In .NET 1.0, the
C# portion is compiled, but the ASPX tags are not.

As far as hiding source, the web server is supposed to accomplish this, at
least from the masses. The more proper methodology, however, is to put your
code into a CodeBehind file. MS mucks this up with .NET 2.0, IMO, by making
code in page a default, but the zero deploy, or everything compiled, solves
the danger of this coding methodology.

-- 
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************
"Lenard Gunda" <frenzy@fbi.hu> wrote in message
news:%23LZQCVJSEHA.1568@TK2MSFTNGP11.phx.gbl...
> Hi!
>
> When I make a request to an ASPX file, it is converted into a C# source
file
> (given, the language is C#). This source can be seen, if I intentionally
put
> in something bad between <% ... %>, because it is treated as source code,
> and if it is wrong, the C# compiler issues an error, when compiling this
> generated .CS file.
>
> I would like to know, what program/utility is used by IIS/ASP.NET to
> generate .CS from .ASPX? Theoretically, if I would generate the .CS by
hand,
> and compile it, it would be possible to create websites that are fully
> compiled in a DLL, right? Is there such a utility that permits me to do
it?
> I found no information, whatsoever, about how this part of ASP.NET works.
>
> Thanks
>
>  Lenard
>
>