Tech Tutorials Database
GeekArticles Database SQL Server
 

Using Microsoft's Chart Controls In An ASP.NET Application: Rendering the Chart

 
Author: 4guysfromrolla.com
Category: SQL Server
Comments (0)

<p> The Microsoft Chart Controls provide ASP.NET developers with an API and a Web control for creating and displaying charts in a web page. Behind the scenes, the Microsoft Chart Controls take the data to be plotted and dynamically generates an image. This image can be generated using one of three techniques: the Chart Web control can generate the image and save it to the web file system in a specified location; the Chart control can generate the image and store it in memory, session, or elsewhere, and have that image served by a built-in Handler, or the Chart control can send back the binary contents of the chart image directly to the browser. The chart image can be rendered using one of four image types: <a <a <a or <a And when rendering a JPG you can specify its compression level. </p><p> Regardless of the image file type and the technique used to generate the image, the Chart Web control renders an <code>&lt;img&gt;</code> element whose <code>src</code> attribute references the image (or the image-producing Handler or ASP.NET page). When a browser requests a web page with a Chart control on it, it receives this <code>&lt;img&gt;</code> element as part of the rendered markup and then makes a request to the URL specified in the <code>src</code> attribute (just like it does for any other image on a web page). The chart image file the browser requests either already exists in which case its contents are returned, or the image is dynamically-generated. Either way, the end result is that the browser is sent back the chart as an image file, which is displays. </p><p> This article explores the three different techniques the Microsoft Chart Controls has at its disposal for generating chart images. look at how to use each option, enumerate the pros and cons, and discuss when to consider using one option over another. Read on to learn more! <br /><a More &gt;</a></p>

Read More...




Sponsored Links




Read Next: Exception Handling Advice for ASP.NET Web Applications



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe