SCRIPT
function PostExportValues(meter_id, range_type_id, start_date, end_date, returnUrl) { var meter = $(\"#meter_selection\").val()[0]; $.ajax({
You cant call a file download on a ajax query because the browser wont trigger the file download. dont use an ajax call to your controller method, you can use like
window.open("url/Exporttoexcel?id=");
with adding paramaters.