DefaultClientControlContainer.UseRequestContentType(RequestContentType) Method
Specifies the request content type.
Namespace: DevExpress.XtraReports.Web.ClientControls
Assembly: DevExpress.XtraReports.v25.1.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
Parameters
Name | Type | Description |
---|---|---|
requestContentType | RequestContentType | An enumeration value that specifies the content type. |
Remarks
Reporting controls use the application/x-www-form-urlencoded
content type for requests from client to server. To use the application/json
as the content type in ASP.NET Web Forms and MVC applications, call the UseRequestContentType()
method with the Json value as a parameter:
DefaultClientControlContainer.UseRequestContentType(RequestContentType.Json);
If you used the fetchSetup.fetchSettings
object to specify headers and their content type, ensure the content type set with the UseRequestContentType()
method matches.
See Also