Why Spark viewengine renders unnecessary (or unexpected) quotes?

Posted by Arnis L. on Stack Overflow See other posts from Stack Overflow or by Arnis L.
Published on 2010-01-01T11:48:39Z Indexed on 2010/05/21 19:50 UTC
Read the original article Hit count: 341

If i add pageBaseType="Spark.Web.Mvc.SparkView" in my web.config (necessary to fix intellisense), somehow it does not render links (probably not only) correctly anymore.

This is how it's supposed to look like (and does, if page base type is not specified)=>

alt text

This is how it looks when base type is specified=>

alt text

Chrome source viewer shows identical page source code for both cases=>

<body> 
    <div class="content"> 
        <div class="navigation"> 
            <a href="/Employee/List">Employees</a> 
            <a href="/Product/List">Products</a> 
            <a href="/Store/List">Stores</a> 
            <div class="navigation_title"> 
                Navigation</div> 
        </div> 
        <div class="main"> 
            <div class="content"> 
<h2>Employees</h2>Nothing found...
&lt;a href=&quot;/Employee/Create&quot;&gt;Create&lt;/a&gt;           
            </div> 
        </div> 
    </div> 
</body> 

Developer tools does not=>

alt text

So - why my link gets htmlencoded (if that's what happens)? If it's default behavior, then how to render raw html?


Using latest Spark version, rebuilt with Asp.Net Mvc2 RC assemblies.

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about spark-view-engine