在 Web 应用程序中定义用于管理客户端脚本的方法。

Page.ClientScript.RegisterStartupScript(
           this.GetType(),
           "js",
           string.Format("alert('return:{0}')", rtn.ToString()),
           true);

原文地址:https://www.cnblogs.com/zhukezhuke/p/1537509.html