locked
aspx & ashx RRS feed

  • Question

  • User-797751191 posted

    Hi

      What is the difference between uploading file using aspx or ashx

    Thanks

    Tuesday, July 30, 2019 7:00 AM

Answers

  • User-821857111 posted

    The generic handler (ashx) is a much lighter weight option because it doesn't implement System.Web.Page. It's also reusable, so you can centralise processing file uploading in one place rather than copying and pasting the same code in multiple places if your application allows file uploading in more than one page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 30, 2019 7:36 AM
  • User-1038772411 posted

    Hello, jsshivalik

    * Generic handler are creating thumbnails of images. Generic handler has a handler which can be accessed by url with .ashx extension.

    *  Http handler is required to be configured in web.config against extension in web.config.  Http handler page handler which serves .aspx extension request and give response

    Reference link :

    https://stackoverflow.com/questions/14853799/difference-between-asp-net-handler-and-generic-handler

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 30, 2019 7:43 AM

All replies

  • User-821857111 posted

    The generic handler (ashx) is a much lighter weight option because it doesn't implement System.Web.Page. It's also reusable, so you can centralise processing file uploading in one place rather than copying and pasting the same code in multiple places if your application allows file uploading in more than one page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 30, 2019 7:36 AM
  • User-1038772411 posted

    Hello, jsshivalik

    * Generic handler are creating thumbnails of images. Generic handler has a handler which can be accessed by url with .ashx extension.

    *  Http handler is required to be configured in web.config against extension in web.config.  Http handler page handler which serves .aspx extension request and give response

    Reference link :

    https://stackoverflow.com/questions/14853799/difference-between-asp-net-handler-and-generic-handler

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 30, 2019 7:43 AM