After spending hours on this, I am still unable to solve the issue. The download functionality of an iframe is working correctly, but the problem is that the iframe onload event is not triggered when theResponse.ContentType = "APPLICATION/OCTET-STREAM";condition is met. Below is the function...