Skip to main content
A newer version of this page is available. .

ASPxUploadProgressHttpHandler

  • 2 minutes to read

The DevExpress ASPxUploadControl uses ASPxUploadProgressHttpHandler in addition to the standard ASPxHttpHandlerModule. This handler is required to correctly process file uploads in advanced upload mode (enabled via the ASPxUploadControl.UploadMode property) and to support upload progress indication (enabled via the ASPxUploadControl.ShowProgressPanel property).

ASPxUploadProgressHttpHandler processes service callbacks (automatically initiated by ASPxUploadControl) to send an uploaded file packet to the server and to obtain file upload progress information from the server.

Note

Since these service callbacks are intercepted and processed by ASPxUploadProgressHttpHandler, a standard page HTTP handler is not used and Page events (Page_Init, Page_Load etc.) are not called.

ASPxUploadProgressHttpHandler is automatically registered within a web project’s Web.Config file when an ASPxUploadControl is added to a form in Design view.

See the registration code below. You can add it manually, if required (e.g., when you do not use design-time editing and create an ASPxUploadControl programmatically).

  • IIS (classic mode)

    <system.web>
         <httpHandlers>
              <add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v20.2, Version=20.2.13.0, Culture=neutral,
                PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" validate="false" />
         </httpHandlers>
    </system.web>
    
  • IIS7 (integrated mode)

    <system.web>
         <httpHandlers>
              <add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v20.2, Version=20.2.13.0, Culture=neutral, 
              PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" validate="false" />
         </httpHandlers>
    </system.web>
    
    <system.webServer>
         <validation validateIntegratedModeConfiguration="false" />
         <handlers>
              <add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v20.2, Version=20.2.13.0, Culture=neutral, 
              PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" name="ASPxUploadProgressHandler" preCondition="integratedMode" />
         </handlers>
    </system.webServer>
    

Note

If one of the sections where ASPxUploadProgressHttpHandler should be registered contains a configSource attribute, it will be skipped without writing anything to it. To learn more, refer to the configSource Attribute topic.