Click or drag to resize

WebUtilsGetContentDispositionHeaderValue Method (String, String)

Note: This API is now obsolete.

Returns a Content-Disposition HTTP header value for a specific file name.

Namespace:  PDTec.IceNet.Web.Utils
Assembly:  PDTec.IceNet.Web (in PDTec.IceNet.Web.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
[ObsoleteAttribute("Use HttpUtils instead.")]
public static string GetContentDispositionHeaderValue(
	string dispositionType,
	string fileName
)

Parameters

dispositionType
Type: SystemString
The disposition-type. Allowed values: "inline" and "attachment".
fileName
Type: SystemString
The file name.

Return Value

Type: String
The Content-Disposition header value.
Remarks
Usage: Response.AppendHeader("Content-Disposition", WebUtils.GetContentDispositionHeader("attachment", fileName));
See Also