GeekArticles
Database
SQL Server
Database
SQL ServerUsing Microsoft's Chart Controls In An ASP.NET Application: Rendering the Chart
<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><img></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><img></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 ></a></p>
Sponsored Links
Related Topics
Subscribe via RSS
SQL Server
- Naming Database Objects: Part II
- Trace Messages Part V: Trace Cleanup
- Naming Database Objects: Part I
- Multiple-Child Aggregation
- Creating SQL Tables for an Integrating Application Using Dexterity
- SQL Server 2005 Beta 2 Transact-SQL Enhancements
- .NET Rocks! - Brian Larson on SQL Server Reporting Services
- Computing the Trimmed Mean in SQL
- SQL Server 2000 Gains on Oracle
- Separator First Formatting (SFF)
