Basically, .ashx or handler files are used when you want to do multiple task at a time and that will work in the asynchronous manner. For Example:- When you are uploading large number of files simultaneously from multiple location into the same site then at that time we should use .ashx or handler files.