Check out example codes for "c# response.contenttype set filename". It will help you in understanding the concepts better.

Code Example 1

Response.AppendHeader("Content-Disposition", "attachment; filename=MyFile.pdf");

Learn ReactJs, React Native from akashmittal.com