Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻求在 asp.net 中实现一个简单的警报,通知用户提交成功。我是 asp.net 的新手,希望得到一些指导。提前致谢。
可以使用后面代码中的以下函数调用警报框。
void mbox(string msg) { ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('" + msg + "');", true); }