generate dynamic pie chart and page redirection in mvc2
I want to know how to generate开发者_运维技巧 a pie chart dynamically. and how to redirect a page to another web page?
You could use Silverlight for the pie chart, it is very good for those and dynamic.
for redirecting the page, if the page you want to redirect to is a View which is rendered by an action method, you can redirect to that action and it will redirect the page to its corresponding view after doing its magic:
public ActionResult SomeAction(int id)
{
// Do your things here
return RedirectToAction("Index");
}
EDIT: Yes, that's why I told you to use Silverlight :), to get started, you need to check Silverlight Charting Toolkit and here's a video on Pie Chart
精彩评论