It's all a matter of the model you use. You can use a page without a
CodeBehind, a page with a compiled CodeBehind (in a DLL in the \bin folder),
or a page with a non-compiled CodeBehind. Visual Studio uses the compiled
CodeBehind model by default. To use a non-compiled CodeBehinid, you have to
change the @Page directive, add a "src" attribute which specifies the
location of the CodeBehind file. The "CodeBehind" attribute is used only at
compile-time, and does not come into play at run-time. If you put the class
execution in a Code Block in the page, and don't use a separate CodeBehind
file, you don't need the "src" attribute.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I used a text editor to create a aspx file and its code-behind c# file,
then
I put these two files in the ...inetpub\wwwroot\test folder. When I tested
it, the result was that the code-behind is ignored.
When I used Visual Studio to do the same, the result was correct. Please
advise.
Peter