在按钮单击时重定向新选项卡或浏览器。(Response.Redirect)在asp.net C#中

时间:2012-04-14 05:26:20

标签: c# asp.net

有人可以建议我们如何使用c#中的Response.Redirect在新窗口或新浏览器中打开页面。 我用过 : 的Response.Redirect( “page1a.aspx”);

但它在现有标签中打开。

1 个答案:

答案 0 :(得分:4)

如果是,请使用javascript,请尝试此操作

        Response.Write("<script>");
        Response.Write("window.open('ClickPicture.aspx','_blank')");
        Response.Write("</script>");