Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
How to print scrollable grdview with Dropdown values in page
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
shahnid k
7y
220
1
Reply
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>
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
HTTPUnhandledException
Websites were facing 503 error. Memory Leak Problem.