Hello- I'm simply trying to print a GridView that is in my ASP.NET Page. I am using the function below which works well in this environment. After I click print or cancel the grid on the page disappears. My question is how can I print and once the print window closes be right back on the same page with the grid and the buttons? Do I have to reload the grid? I am new to the .net environment. Thanks.
function CallPrint( strid )
var prtContent = document.getElementById( strid );
// var strOldOne=prtContent.innerHTML;
var WinPrint = window.open('', '', 'left=0,top=0,width=1000,height=1000,status=0');
WinPrint.document.write( prtContent.innerHTML );