Skip to content

Instantly share code, notes, and snippets.

@IliaIdakiev
Created September 5, 2013 11:33
Show Gist options
  • Save IliaIdakiev/6448992 to your computer and use it in GitHub Desktop.
Save IliaIdakiev/6448992 to your computer and use it in GitHub Desktop.
Razor Parse C# List To Javascript array
var arr = JSON.parse('@Html.Raw(Json.Encode(@Model.DuplicateIds))')
@TamaraMart28
Copy link

doesn't work((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment