我正在使用vs 2010。我需要向用户显示消息并重定向页面。
我使用下面的代码行。
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "<script> alert('User details saved sucessfully');window.open('frmDisplayUsers.aspx');</script>", true);
但是我并没有收到警告消息,而且页面直接重定向了。
如何获取警告消息?