msg C# 小函数

public void WebMessageBox(string values)
{ HttpContext.Current.Response.Write("<script>alert('" + values + "');history.back()</script>");
HttpContext.Current.Response.End();
}
public void WebMessageBox(string values,string PageURL)
{ HttpContext.Current.Response.Write("<script>alert('" + values + "');window.location.href='" + PageURL + "'</script>");
HttpContext.Current.Response.End();
}

------------------------
history.back() 这个以前怎么没想过啊。。呵呵。。
posted @ 2008-03-28 22:30  彭成刚  阅读(248)  评论(0编辑  收藏  举报