0

私は現在持っています:

        String url = "../CustomerSettings/CustomerConfiguration.aspx?CustomerID=" + sqlCommand.Parameters["@ReturnCustomerID"].Value.ToString();

        this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myUniqueKey", "self.parent.location='"+url+"';", true);

これは親ページをリダイレクトするにはうまく機能しますが、新しいタブを開くには必要です。助言がありますか?

4

1 に答える 1

0

このようなものが動作するはずです:

this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myUniqueKey", "window.open(" + url + ",'_blank');", true);
于 2013-03-21T17:57:06.657 に答える