Chart.ImageLocation Property (System.Web.UI.DataVisualization.Charting)

Switch View :
ScriptFree
.NET Framework Class Library
Chart.ImageLocation Property

Gets or sets the location where an image file is saved when ImageTag rendering is performed.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Syntax

Visual Basic
<PersistenceModeAttribute(PersistenceMode.Attribute)> _
<BindableAttribute(True)> _
Public Property ImageLocation As String
	Get
	Set
C#
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[BindableAttribute(true)]
public string ImageLocation { get; set; }
Visual C++
[PersistenceModeAttribute(PersistenceMode::Attribute)]
[BindableAttribute(true)]
public:
property String^ ImageLocation {
	String^ get ();
	void set (String^ value);
}
F#
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
[<BindableAttribute(true)>]
member ImageLocation : string with get, set

ASP.NET
<asp:Chart ImageLocation="String" />

Property Value

Type: System.String
A string value that represents the URL where the image file is saved on the server.
Remarks

This property has no effect if ImageStorageMode is set to UseHttpHandler().

When you render a chart image using the image tag method, a chart image is generated and then saved to disk at the server, in a format that is determined by the ChartImageType property.

The URL where the image file is saved can be either absolute or relative; the file extension that the image file has is determined by the ChartImageType property.

The image file can be hard-coded to always be one filename, or you can use the "#" sign to use either user identifiers (UIDs) or a specified number of uniquely named files, which is known as a Round Robin.

Version Information

.NET Framework

Supported in: 4
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference