Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Unassigned: ASPPARSE error when @ character follows tag name [152]

$
0
0
The latest version of RazorGenerator (1.6.3) produces ASPPARSE error when '@' character is used immediatelly after a tag name, for example in ASP.NET MVC [_WebGridRenderer.cshtml](http://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Helpers/WebGrid/_WebGridRenderer.cshtml):

```
<thead>
<tr@CssClass(headerStyle)>
```

_... error ASPPARSE: Encountered end tag "thead" with no matching start tag. Are your start/end tags properly balanced?_

The error does not appear when RazorGenerator is not enabled.




Comments: I can't repro the issue. That said Razor parser v2 and v3 produce incorrect code for the file. Try specifying `@* RazorVersion 1 *@` as part of the directive and it might solve the issue. `

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>