3

Possible Duplicate:
Mix Razor and Javascript code

The following code produces an "Invalid character" warning in visual studio.

<script type="text/javascript">
    var model = {
        id: @(Model.Id),
        initalData: @(Html.Raw(ViewBag.InitalData))
    };
</script>

Is there any way to get rid of the warning?

Community
  • 1
  • 1
Scott Weinstein
  • 18,890
  • 14
  • 78
  • 115

0 Answers0