C#弹出对话框实现

在Web网站中,使用System.Web.HttpContext.Current.Response.Write("<script>alert('异常:"+exp.Message+"');history.back();</script>");

或者Response.Write("<script>alert('异常:"+exp.Message+"');history.back();</script>");

在Win Form 应用程序中,则是使用MessageBox.Show(string text,string cation);来实现。

posted on   COS  阅读(678)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示