Showing System.Web.Helpers.Chart in a partial view from the model

前端 未结 2 1575
死守一世寂寞
死守一世寂寞 2020-12-10 08:19

So I was trying out the Chart helpers in the System.Web.Helpers namespace.

according to http://www.asp.net/web-pages/tutorials/data/7-displaying-data-in-a-chart

2条回答
  •  长情又很酷
    2020-12-10 09:13

    Some header above a graph

    public ActionResult DrawChart() { MyViewModel model = ... return View(model); }

    !!! To send the Model parameter to DrawChart

    Change to

    Some header above a graph

    public ActionResult DrawChart(MyViewModel _MyViewModel ) { MyViewModel model = MyViewModel ; return View(model); }

    MyViewModel is Null

    Seek advice from those who know.

提交回复
热议问题