I am trying to debug code in a cshtml file. I set a breakpoint and it breaks. But when I try to watch a variable it gives the CS0103 error. This is happening all the time not just in this part of the code.
I have set it to use managed compatibility and made sure I am in debug instead of release. I have looked at it on google and it is set up the way it should be as far as I know. I am a newbie to C# and debugging cshtml files.
if (@Model.GranteeDeed1 > 0) {
var fe = fundEntities.filter(function(obj) { return obj.FundEntityID == @Model.GranteeDeed1; });
$("#lblGranteeDeed1").text(fe[0].EntityName);
$("#txtGranteeDeed1 option[value='" + fe[0].FundEntityID + "']").attr("selected", "selected");
}
I want to see the value of either obj.FundEntityID or (fe[0].EntityName). I can see the value of @Model.GranteeDeed1.