/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function showPrintPage() { var PageType = $("[id$=_lnkPrint]").attr("PageType"); var grdID = 'divGrid'; if (PageType == "Multitab") { grdID = $("[id$=_lnkPrint]").attr("Gridid"); } var Browsediv = window.document.getElementById(grdID); var Detaildiv = window.document.getElementById('idAreaDetail'); var Chartdiv = window.document.getElementById('idAreaChart'); if (Browsediv != null) getPrint(grdID); else if (Detaildiv != null) getPrint('idAreaDetail'); else if (Chartdiv != null) getPrint('idAreaChart'); return false; }
Comments
