asp.net提示弹出框不出现
在页面中单击按钮事件中执行以下代码:
ShowErrorInfotoWeb("信息内容添加成功!")
Response.Redirect(Request.RawUrl)
其中ShowErrorInfotoWeb函数为
Public Shared Sub ShowErrorInfotoWeb(ByVal cMsg As String)
Current.Response.Write("<script>alert('" & cMsg & "');</script>")
End Sub
现在问题是“信息内容添加成功”不提示,而直接执行Response.Redirect(Request.RawUrl)