how to open a page in new tab on button click in asp.net?

前端 未结 16 2179
情书的邮戳
情书的邮戳 2020-11-29 07:32

I want to open a page in new tab of browser on button click.

I have searched a lot on google but i couldn\'t find anything.

Here is my button.



        
16条回答
  •  感动是毒
    2020-11-29 07:47

    Add this Script  
    
    and 
        
    and 
    protected void BTNpRINT_Click(object sender, EventArgs e)
        {
            Response.Redirect(string.Format("~/Print.aspx?ID={0}",txtInv.Text));
        }
    

提交回复
热议问题