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: Adding the directive (at the first line in the view) results in an additional error (curiously with "Custom tool error" prefix), see attached screenshot. The remaining 3 errors are due to the helper class not being generated. Could you provide some more details about what is incorrect in the produced code? I have not compared the generated code with ASP.NET MVC original (it is different, because ASP.NET MVC project obviously does not use the latest RazorGenerator), but the output HTML is the same (apart from the spaces I had to add to workaround the RazorGenerator-related errors).

Viewing all articles
Browse latest Browse all 525

Trending Articles



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