ChartDirector 7.1 (.NET Edition)

RazorChartViewer.IsAttachmentRequest


Usage

[C#]public bool IsAttachmentRequest();
[VB]Public Function IsAttachmentRequest() As Boolean

Description

Checks if the current partial update request (AJAX request) is an attachment request sent using JsChartViewer.partialUpdateAsAttachment.

This method only applies for partial update requests.

In partial update request, additional parameters and custom attributes will be included in the requests. The response can include the updated chart, image map, additional parameters and custom attributes. However, if it is an attachment request, then the response will only include the chart, with the HTTP header specifying it as an attachment.

This method allows the code that handles the partial update request to distinguish if it is an attachment request or not. If it is an attachment request, the code only needs to update the chart but not other things, as only the chart will be included in the response.

Arguments

None

Return Value

True if the current partial update request is an attachment request sent using JsChartViewer.partialUpdateAsAttachment., otherwise false.