Why can’t you use the Chart control directly in views? Why do you have to return the image generated?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although there are ways to get WebForms working with MVC, however, fundamentally WebForms controls cannot work in ASP.NET MVC Views as ‘WebForms Templates’. Clue is in the name.. APS.NET MVC uses the WebForms as templates, so you don’t get the full page life-cycle events and so on in ASP.NET MVC views.
If you don’t want to generate images, another option is to use a javascript based graph utility (based on jQuery).