Mixing razor and javascript code for @Html.Partial()

前端 未结 2 686
情话喂你
情话喂你 2020-12-21 08:07

Can anyone provide me solution for how to dynamically add some code into the page in MVC.

I was doing this way but in this code the page fails to identity index java

2条回答
  •  醉梦人生
    2020-12-21 08:46

    it would be better to use jQuery load() or call by ajax action in the controller, this approach described there ASP.NET MVC rendering partial view with jQuery ajax

提交回复
热议问题