In webform I want to print all multiline textboxes .
function printDiv(divID) {
//Get the HTML of div
var divElements = document.getElementById(divID).innerHTML;
//Get the HTML of whole page
var oldPage = document.body.innerHTML;
//Reset the page's HTML with div's HTML only
document.body.innerHTML =
"<html><head><title>Print</title></head><body>" +
divElements + "</body>";
//Print Page
window.print();
//Restore orignal HTML
document.body.innerHTML = oldPage;
}
<asp:ImageButton ID="ImageButton1" Text="Print" runat="server" ImageUrl="~/images/print.jpg" OnClientClick="javascript:printDiv('printablediv')" ...
Go to the complete details ...