博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月23日

摘要: JQERY版 $(document).ready(function(){ $("按下回车的控件").keydown(function(e){ var curKey = e.which; if(curKey == 13){ $("#回车事件按钮控件").click(); return false; } }); }); JS版转自:http://blog.163.com/liaojunbo@126/blog/sta... 阅读全文
posted @ 2012-04-23 11:16 巛 阅读(308) 评论(0) 推荐(0) 编辑

摘要: 转自:http://hi.baidu.com/xiaocai0923/blog/item/426f88cb642e8a57f31fe7f0.htmlIHttpModule向实现类提供模块初始化和处置事件。IHttpModule包含兩個方法:public void Init(HttpApplication context);public void Dispose();Init():这个方法接受一个HttpApplication对象,HttpApplication代表了当前的应用程序,我们需要在这个方法内注册 HttpApplication对象暴露给客户端的事件。可见,这个方法仅仅是用来对事件进行 阅读全文
posted @ 2012-04-23 11:12 巛 阅读(196) 评论(0) 推荐(0) 编辑

摘要: ASP.NET日期处理函数1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前 阅读全文
posted @ 2012-04-23 11:10 巛 阅读(513) 评论(0) 推荐(0) 编辑