我正在使用vs 2010.我需要向用戶顯示消息並重定向頁面。如何在重定向頁面之前獲取警報消息
我使用下面的行。
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "<script> alert('User details saved sucessfully');window.open('frmDisplayUsers.aspx');</script>", true);
但我沒有收到警報消息,並且該頁面被直接重定向。
如何獲取警報消息?