I am new to MVC and trying to figure out a way to do the below:
Basically, I have a URL http://dev.test.com/api/data/abczyz12345, which when clicked/opened from the UI shows the results as:
"email","f_name","l_name","c_name","ids" "abc1@test.com","C G","Wander","C1","" "abc2@Atest.COM","Virginia","Dale","A & D","" .... and so on....
On my view I display the above link as an anchor and when the user clicks on it - it gets opened on the same page. Is there a way that when the user clicks on the link - instead of opening it on the web page it opens as a CSV file (giving the user an option to download)?