how to pass parameter from aspx.cs page to java script function
htmlbutton.Append("
");
htmlTablenew.Append(htmlbutton.ToString() + "
");
");
htmlbutton.Clear();
javascript function
function PrintDiv() {
var contents = document.getElementById("tdi").innerHTML;
var frame1 = document.createElement('iframe');
frame1.name = "frame1";
frame1.style.position = "absolute";
frame1.style.top = "-1000000px";
document.body.appendChild(frame1);
var frameDoc = frame1.contentWindow ? frame1.contentWindow : frame1.contentDocument.document ? frame1.contentDocument.document : frame1.contentDocument;
frameDoc.document.open();
frameDoc.document.write('DTM ');
frameDoc.document.write('');
frameDoc.document.write(contents);
frameDoc.document.write('');
frameDoc.document.close();
setTimeout(function () {
window.frames["frame1"].focus();
window.frames["frame1"].print();
document.body.removeChild(frame1);
}, 500);
return false;
}
Manas MohapatraPosted Sep 1, 2016, 10:54 AM
");
Midhun TpPosted Sep 1, 2016, 10:05 AM
chiranjeevi mugibariPosted Sep 1, 2016, 9:37 AM
Midhun TpPosted Sep 1, 2016, 9:34 AM