开发者

ASP.Net Chart Control with MVC3 Razor

I am using ASP.Net MVC3 and the MS chart controls to draw a pie chart.

It seems I have to set 开发者_运维技巧an IMG control with the source set to an action controller. However this looses the possibility of being able to 'click' on the image and get a redirect to another page with the relevant segment that has been clicked.

Can anyone help?

Thanks


This tutorial - here. Should help you, however in doing this it will add a viewstate to your views. It basically adds runat="server" to your page so treats it like any normal webforms page and violates the MVC principal.

If your bothered about that then there are a number of javascript charts that can be used - the Google chart api is a good start.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜