<script type="text/javascript"> window.print(); </script> this will work when new page open or redirected if you want to call on button click then you make a javascript function and call on onclick event on button click.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)