function exporttoexcel() {
$('#export').click(function() {
$.ajax({
url: 'exportdata.aspx',
cache: false,
success: function(data) {
}
});
});
}
I want to export datagrid item into excel file. when i use aler(data). item is displaying but excel save as and download window is not appearing.