ChartDirector 7.1 (.NET Edition)

WebChartViewer.GetPostBackURL


Usage

[C#]public string GetPostBackURL([ string cookie ]);
[VB]Public Function GetPostBackURL([ cookie As String ]) As String

Description

Creates a special URL to represent post back operation for use in image maps.

Normally, image map may act like hypertext links, that is, clicking on a hot spot will jump to another URL. The GetPostBackURL method can be used to create a special URL, so that clicking will trigger a post back operation instead. This will result in a WebChartViewer.ClickHotSpot event being fired on the server side.

The URL generated by the GetPostBackURL method should be used as the URL argument of the various getHTMLImageMap methods (eg. BaseChart.getHTMLImageMap, Layer.getHTMLImageMap, etc) for generating image maps. The query parameters in these image maps will become attributes of the WebHotSpotEventArgs.

For example:

[VB]WebChartViewer1.ImageMap = c.getHTMLImageMap(WebChartViewer1.GetPostBackURL())
[C#]WebChartViewer1.ImageMap = c.getHTMLImageMap(WebChartViewer1.GetPostBackURL());

In addition to the query parameters in the image map, GetPostBackURL supports an additional parameter that will be become the "cookie" attribute of the WebHotSpotEventArgs when the event is fired.

Arguments

ArgumentDefaultDescription
cookie""An arbitrary string that will become the "cookie" attribute of WebHotSpotEventArgs when the WebChartViewer.ClickHotSpot event is fired.

Return Value

A special URL for post back operating. This URL should only be used as the URL argument of the various getHTMLImageMap methods.