WebUtilsGetContentDispositionHeaderValue Method (Boolean, String) |
Returns a Content-Disposition HTTP header value for a specific file name.
Namespace: PDTec.IceNet.Web.UtilsAssembly: PDTec.IceNet.Web (in PDTec.IceNet.Web.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic static string GetContentDispositionHeaderValue(
bool isAttachment,
string fileName
)
Parameters
- isAttachment
- Type: SystemBoolean
true if the disposition-type should be "attachment", otherwise false. - fileName
- Type: SystemString
The file name.
Return Value
Type:
StringThe
Content-Disposition header value.
RemarksUsage: Response.AppendHeader("Content-Disposition", WebUtils.GetContentDispositionHeader(true, fileName));
See Also