私は使用しています
ClientScript.RegisterStartupScript(this.GetType(), "pop", newWin, true);
ポップアップ ウィンドウを開きます。
この行の後にいくつかのコード行があります。しかし、ポップアップを閉じた後にそれらのコードを実行する必要があります。すぐにではありません。
解決策はありますか?
ボタン クリック イベント:
private void button_Click(object sender, EventArgs e)
{
string queryString = "WebForm2.aspx";
string newWin = "window.open('" + queryString + "');";
ClientScript.RegisterStartupScript(this.GetType(), "pop", newWin, true);
((Button)sender).Enabled = false;
}
ボタンクリック ポップアップページを開きます。