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
shahnid k
NA
61
15.6k
How to print scrollable grdview with Dropdown values in page
Apr 3 2017 3:10 AM
Hi,
I have a scrollable gridview to be printed. There are 3,4 dropdown list also. I also need to get the values/Text of that dropdown to be displayed on the printing page. Datas inside the gridview is displayed according to the filter happening on that dropdown list. I have written some javascript code for printing option but it prints only the gridview values. I need to add the dropdown values too.
<script type]=
"text/javascript"
>
function
PrintPanel() {
var
panel = document.getElementById(
"<%=Panel1.ClientID %>"
);
var
printWindow = window.open(
''
,
''
,
'height=750,width=1100'
);
printWindow.document.write(
'<html><head><title>Grdview_print</title>'
);
printWindow.document.write(
'</head><body >'
);
printWindow.document.write(panel.innerHTML);
printWindow.document.write(
'</body></html>'
);
printWindow.document.close();
setTimeout(
function
() {
printWindow.print();
}, 500);
return
false
;
}
</script>
Reply
Answers (
0
)
HTTPUnhandledException
Websites were facing 503 error. Memory Leak Problem.