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

前端 未结 16 2171
情书的邮戳
情书的邮戳 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 08:05

    Take care to reset target, otherwise all other calls like Response.Redirect will open in a new tab, which might be not what you want.

    
    

    In javaScript:

    
    

提交回复
热议问题