Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

MVC view pass model to javascript function

//Get your view model from js
var dto = @Html.Raw(Json.Encode(Model));
 
PREVIOUS NEXT
Tagged: #MVC #view #pass #model #javascript #function
ADD COMMENT
Topic
Name
7+8 =