开发者

Help passing objects to methods in asp.net mvc 2

I have this snippet in my html... Fusion Charts requires I feed it an XML to create a graph

<script type="text/javascript">
        var myChart = new FusionCharts("/Content/Fusion_Charts/Charts/Column3D.swf", "myChartId", "470", "350", "0", "0");
        myChart.setDataURL("/XML/Graph/?list=<%=Model.list%>");
        myChart.render("Graph");
    </script>

So in my XMLController I simply have a method like this

public ActionResult Graph(FusionChartsLi开发者_JAVA百科st list)
        {
            return View(list);
        }

So my question is... how can I get the object to actually populate when passing it as url parameter??

thanks in advance.


Call the setDataXML Javascript method with the raw XML string instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜