I have the following code in a c# MVC 3 razor page where I am passing serialized data into a javascript variable for KnockoutJs:
@{ var listDa
This issue still exist in Visual Studio 2013 SP 2
To fix this warning message initialize javascript variable first. IMO Visual studio think var as implicitly typed if any var followed by @.
var ListData; var PagerData; ListData = @(Html.Raw(listData)); PagerData = @(Html.Raw(pagerData));