compilationmode

ASP.NET compilationMode Auto vs Never

Let's assume my ASPX page has no inline C# code blocks. So, I can safely set <pages compilationMode="Never" /> ...in my web.config file and not worry about compilation errors. Performance-wise, would there be any penalty to using the following setting? <pages compilationMode="Auto" /> i.e. does the "auto" detection take any signi...

How to highlight source in Emacs compilation-mode when compilation error occurs

Hi, I read the documentation about compilation-mode but I didn't find any technique to hightlight source code where a compilation error occurs. For example change the background color of the source code that produces the compilation error (like the red underline in Eclipse or Netbeans). And also a way to read the error message somewhere...

CompilationMode=Never & SessionState

It seems that CompilationMode=Never doesn't permit Sessions to be properly wired. It first complains that the EnbaleSessionState directive is not allowed on this page. Explicitly assigning the System.Web.SessionState.IRequiresSessionState to the Page [1] avoids the null reference exceptions (around .Session access) but still doesn't pe...

ASP.NET nested masters pages with CompilationMode="Never", a recepie for disaster? Bug in ASP.NET?

While working on a quite big web application project, I decided that it could gain a little bit of fresh air by marking some of the pages and controls with the CompilationMode="Never" @Page attribute. So far so good, working as expected and then it happened. A corner case scenario that I am going to explain behaved unexpectedly to put it...

ASP.NET ExpressionBuilder syntax - output AppSetting within img tag

I would like to use ASP.NET's ExpressionBuilder syntax to dynamically retrieve domain of static content from an AppSetting. I am using the following syntax, which does not work: <img src="<%$Appsettings:STATIC_CONTENT_DOMAIN %>/img/logo.jpg" alt="logo" width="176" height="159" /> FYI, the desired HTML output is: <img src="http://sta...