Hello,

Please find below code that can help you to solve your problem of opening page in new tab of browser.

use this below code in the code behind

btnPrint.Attributes.Add ("OnClick","openwindow()");

and use this code in the head tag

<script type="text/javascript" language="javascript">

function openwindow()
{
window.open ("PrintReport.aspx",'','width=1000px,height=600px,menubar=yes,scrollbars=yes,
left=0,top=0');
}
</script>


Thankyou,
Rajesh Singh
Asp.Net Developer
Indianic Infotech ltd (India)
rajesh@indianic.com

0 comments