Forums - C# Corner

Forum guidelines
Ramesh gawade

Ramesh gawade

  • 1.6k
  • 68
  • 13.5k

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)'file:///C://foldername//Report.csv', '_blank');
 2) window.location = 'file:///C://foldername//Report.csv';
var url = 'file:///C://foldername//Report.csv';
3 ), '_blank');
4)  window.location = url; 
only blank window open but not download 

Answers (1)


Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now