TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Radha Merikanapalli
NA
27
793
How to Export to excel with filename using javascript.
Apr 6 2018 5:08 AM
<asp:LinkButton ID="btnexport" class="btn btn-sm btn-primary"><i class="fa fa-download" ></i> EXPORT</asp:LinkButton>
<script type="text/javascript">
$("[id$=btnexport]").click(function (e) {
window.open('data:application/vnd.ms-excel,' + encodeURIComponent($('#divrkapreport').html()));
e.preventDefault();
});
</script>
Reply
Answers (
0
)
click on webapplication homepage logo admin logs out.
c#, asp.net, visual studio