ASP.NET 2.0: No Compile Pages

If you have a large ASP.NET website, you may want to turn off compilation of your non-code ASP.NET pages. You can do this by setting the CompilationMode property of the Page directive to Never. If you aren't in the mood to check all pages, let ASP.NET decide. In the web.config file, set the CompilationMode property in the <pages /> section to Auto. This will allow ASP.NET to evaluate each page and decide whether or not it should be compiled.
Published Wednesday, April 20, 2005 2:07 PM by Jason N. Gaylord

Comments

# re: ASP.NET 2.0: No Compile Pages

Monday, May 16, 2005 9:44 PM by YeYan
if No ASP.NET CODE why not use .HTML?

# re: ASP.NET 2.0: No Compile Pages

Tuesday, May 17, 2005 1:27 PM by Jason N. Gaylord
Because you may want to take advantage of the ASP.NET controls such as the login control or master pages.

# re: ASP.NET 2.0: No Compile Pages

Sunday, May 20, 2007 11:10 AM by Alex

and dont forget about <%$ blablabla:bla %> operator ! - very usefull and powerful thing !

Leave a Comment

(required) 
(required) 
(optional)
(required)