views:

54

answers:

1

I have recently managed to make my ASP.NET MVC application run under Linux with the Mono runtime. The .aspx pages execute perfectly, including assignment inline server tags, eg:

<%= "Some output" %>.

Unfortunately, it seems that those tags for simple code execution are not treated by the server. Here is an example:

<% if(someBool) { %> write if true <% } %>

Regular ASP.NET will display "write if true" only if someBool is true. Mono will output the whole statement including the server tags.

I cannot find any documentation about that problem... can you help me?

A: 

Hmm, your example works correctly for me on Mono 2.4.2.3.

  • What version of Mono are you using?
  • Did you precompile your website on Windows?
  • Is it inside a more complex code execution block?
jpobst
I admit that this was an over simplification of the problem. In fact, I am starting to think that the problem happens when a tag spans on multiple lines...
RooSoft