Calling to JSON file in ASP.NET MVC 4

后端 未结 4 1171
半阙折子戏
半阙折子戏 2021-01-02 21:44

I started to learn ASP.NET MVC 4, did some small stuff...

In my index page I want to get JSON file with some data and display it on the mai

4条回答
  •  迷失自我
    2021-01-02 22:36

    You have to make ajax call in view, just call MVC url which return json data and operate on that data.

    
    

    pass the Controller, Action and Id part whichever is applicable in the ajax call. Hope this will help you

提交回复
热议问题