The following piece of code works correctly:
<span class="dysiChannelSubscription">
@if (Model.ChannelName == "ninacopes")
{
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:200px; height:20px;"
src="//platform.twitter.com/widgets/follow_button.html?show_count=false&[email protected]">
</iframe>
}
</span>
However, if I change the if to:
@if (Model.ChannelType == Fluent.Data.Enums.ChannelTypeEnum.Twitter)
It doesn't render any longer. This is in a partial view.
jQuery yields:
syntax error
<!DOCTYPE html>
I have no clue why. Model.ChannelType is of that type, and I get the twitter value purely from intellisense, which makes me wonder why this breaks at all.