1.加载JS代码 ClientScript.RegisterStartupscript() 2. VS 加入 JS代码的编辑器插件 3. ASP页面的控件设置为必须入力。 转载于:https://www.cnblogs.com/loveLu/p/5438176.html