Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: Razor V2 Bug: Not able to use @this inside code block [458]

$
0
0
In Razor v2, we are not able to use @this inside razor code block. For example, if we use this in Razor V2 then the parser shows a parser error.
@if (this.Model.ShowAddButton)
{
@this.Html.ActionLink("Add", "Add")
}

Detail can be found here.
http://forums.asp.net/t/1844029.aspx
Comments: A workaround can be putting a statement into a brackets: @(this.Html.ActionLink("Add", "Add")) But this is a bug in my opinion and should be repaired.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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