.net Core with React – how to return a file and display in new browser tab

This actually does work:

var link = '/Document/ViewDocument?docId=' + docId
window.open(link, "_blank");

It didn’t appear to be working initially because there was an error occuring in the document warehouse api.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top