04 2012 档案

Use ActionFilterAttribute to check user logging
摘要:public class CheckLoginAttribute : ActionFilterAttribute { public CheckLoginAttribute() { } public override void OnActionExecuting(ActionExecutingContext filterContext) { if (filterContext.HttpContext.Session["User"] == null) { ... 阅读全文

posted @ 2012-04-11 23:50 笑东风 阅读(227) 评论(0) 推荐(0) 编辑

WinFrom Exception Handler
摘要:1 [STAThread] 2 static void Main() 3 { 4 Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); 5 AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledEx... 阅读全文

posted @ 2012-04-02 00:35 笑东风 阅读(256) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示