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...
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...
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...
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...
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...