If both sides are strings then you can try .ToString() like below.
Up vote 1 down vote favorite share g+ share fb share tw.
The following piece of code works correctly: @if (Model. ChannelName == "ninacopes") { } 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 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. Asp.
Net-mvc-3 razor link|improve this question asked Oct 19 '11 at 16:12Nico4,2241333 97% accept rate.
If both sides are strings then you can try .ToString() like below. @if (Model. ChannelType == Fluent.Data.Enums.ChannelTypeEnum.Twitter.ToString()) If both Sides are Integer then you can try @if (Model.
ChannelType == (int)Fluent.Data.Enums.ChannelTypeEnum. Twitter).
Should it not then be something like: TypeOf(Model. ChannelType)?
ChannelType is an enum, of type ChannelTypeEnum – Nico Oct 19 '11 at 16:47.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.