I am looking for some samples or directions on how to print an aspx page. On the page, I have a set of edit boxes and buttons and grids filled with information. Using the following JS code of course I'm able to bring up the Printing dialog and it prints the page but How can I avoid printing or displaying buttons, lines, grids and etc on the output?
Or in general, how can I manage or customize the layout of my output?
<asp:Button ID="btnPrint" runat="server" Text=" Print " CssClass="btn btn-info" OnClientClick="javascript:window.print();" />
Thanks. Ak