摘要: 在ASP.NET中我们经常需要输出一些JS脚本,比如弹出一个警告窗口,返回到历史页面等JS功能,在页面中使用JS我们比较熟悉,而在.cs文件中使用JS的方法多为:page.ClientScript.RegisterStartupScript和Response.Write(),本人建议使用前者,通过脚本注册来完成更符合脚本的风格。下面是使用代码:using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.UI;/// <summary> /// 弹出 阅读全文
posted @ 2011-04-15 16:14 KevinHuke 阅读(285) 评论(1) 推荐(0) 编辑