Forums - C# Corner

Forum guidelines
Ramesh gawade

Ramesh gawade

  • 1.4k
  • 19
  • 6.8k

download csv file from c drive

Sep 13 2017 6:34 AM
I want to download file from c drive using jquery on button click.
 
  **file name dynamic 
 
I use this code 
 
  1) window.open('file:///C://foldername//Report.csv', '_blank');
 2) window.location = 'file:///C://foldername//Report.csv';
 
var url = 'file:///C://foldername//Report.csv';
3 ) window.open(url, '_blank');
4)  window.location = url; 
 
only blank window open but not download 
 
 

Answers (1)