We can use method Window.Open() which will do our job easy. with this method we can easy export our table data to excel from client side.
Bellow code will help :
$("[id$=buttonControlID]").click(function(e) {
window.open('data:application/vnd.ms-excel,' + encodeURIComponent( $('div[id$=divTableData]').html()));
e.preventDefault();
});
Here above method will do export our data to excel.
Understanding of "Window.Open()" i will post in very next post once i understood.
Bellow code will help :
$("[id$=buttonControlID]").click(function(e) {
window.open('data:application/vnd.ms-excel,' + encodeURIComponent( $('div[id$=divTableData]').html()));
e.preventDefault();
});
Here above method will do export our data to excel.
Understanding of "Window.Open()" i will post in very next post once i understood.
No comments:
Post a Comment