按F5刷新页面,按钮的事件被自动触发,该怎么处理呢

后面加上:
Response.Write("<script>top.location=top.location</script>");

或者

this.Page.ClientScript.block(this.GetType(), "message", "<script>alert('test')</script>");

原文地址:https://www.cnblogs.com/mxh691/p/1398021.html