Hai,
I had used 4 DIV's in my web page.
During print a particular DIV, there is a need to print value of one Text Box (Note: before print user will type something in Text Box) and I had placed some Check Box also. The check box also need to be printed with check or unchecked whatever condition.
For this purpose, I had used the following code;
- <script type="text/javascript">
- function printDiv() {
- var divElements = document.getElementById("<%= Panel1.ClientID %>").innerHTML;
- var oldPage = document.body.innerHTML;
- document.body.innerHTML = "" + divElements + "";
- window.print();
- document.body.innerHTML = oldPage;
- }
- </script>
The DIV is printing but without the value of Text Box.
Please help me to print the DIV with the value of Text Box and Check Boxes.
Thanks & Regards,
Guna