Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WebExportController.CustomWriteToResponse Event

Occurs after the data represented by the ExportController.Exportable List Editor has been exported.

Namespace: DevExpress.ExpressApp.Web.SystemModule

Assembly: DevExpress.ExpressApp.Web.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Web

#Declaration

public event EventHandler<CustomWriteToResponseEventArgs> CustomWriteToResponse

#Event Data

The CustomWriteToResponse event's data class is CustomWriteToResponseEventArgs. The following properties provide information specific to this event:

Property Description
FileName Specifies the name of the file to which the browser can save the stream passed as the CustomWriteToResponseEventArgs.Stream parameter.
Handled Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.
Stream Specifies the stream to be sent to the browser.

#Remarks

By default, after data is exported to a stream, the stream content is sent to a client’s browser with the help of the HttpResponse object and the execution of the page is stopped. Handle this event to manually send the stream content to a client’s browser. Set the handler’s Handled parameter to true to cancel the default behavior.

See Also