How do I use Target=_blank on a response.redirect?

后端 未结 12 1922
梦谈多话
梦谈多话 2020-12-10 16:12

I do not necessarily have to use response.redirect, but that is what I had. I would like to open the selected link in a new window. How do I do that?

context         


        
12条回答
  •  -上瘾入骨i
    2020-12-10 16:34

    You're trying to accomplish a client-side task from the server side, so you'll need to do a bit of hacking.

    One option is sending back a page that's just a bit of JavaScript, which then will handle the redirect.

    This isn't particularly clean, but what about:

    Response.Write("");
    

提交回复
热议问题