ASP.NET Handler (ashx) vs MVC Controller Action for downloading files -



ASP.NET Handler (ashx) vs MVC Controller Action for downloading files -

we have application uses webforms older web app pages, contains mvc functionality of newer features. have new requirements downloading files have processed on server (not direct links static files on web server).

i haven't seen indicate if there reason 1 should utilize ashx handler on using mvc controller , operating on response object , returning emptyresult() @ end of action method.

is there best-practice mvc? should ashx handlers left webforms or there benefit provide on using mvc type of file download feature?

the performance of httphandler improve since more bare-metal mvc actions (just few steps, still).

besides that, see no reason why should take 1 on other performance reasons. mvc has nice features might want use, caching , authorization attributes.

if take utilize mvc, utilize results built file handling, filestreamresult or filecontentresult.

asp.net asp.net-mvc ashx

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -