Accessing ASP.NET MVC model data from with Javascript

后端 未结 3 566
天命终不由人
天命终不由人 2021-01-14 19:17

I have a strongly typed View that accepts a Customer model, this customer model is a LINQ2SQL partial class that has a property called Journeys which returns all Journeys th

3条回答
  •  隐瞒了意图╮
    2021-01-14 19:44

    I would do this:

    Using NewtonSoft Json Library, you can convert any C# model object to Json at the client end

    http://james.newtonking.com/pages/json-net.aspx

    in the view

    
    

提交回复
热议问题