摘要:
第一种(可以拿到url的controller名):微软已经提供了 非常方便的方法为什么 还要绕远路呢?ViewContext.RouteData.Route.GetRouteData(this.Context).Values["controller"]ViewContext.RouteData.Route.GetRouteData(this.Context).Values["action"]第二种:ViewContext.RouteData.Values["controller"]如果以上代码在.ascx中<%:this.Htm 阅读全文
阅读排行榜
【转】windows has blocked this software because it can't verify the publisher
2012-08-07 18:29 by 蜡笔小旧, 2200 阅读, 收藏,
摘要:
1. Open internet explorer, click Tools – Internet Options .2. Click the Security tab – Custom Level button.Under ActiveX ensure the following are set to enabledRun ActiveX and plug-ins – EnabledDownload Signed ActiveX Control – EnabledScript ActiveX controls marked as safe for scripting – EnabledSet 阅读全文
ASP.NET Identity - LockoutEnabled
2015-03-12 18:12 by 蜡笔小旧, 1807 阅读, 收藏,
摘要:
LockoutEnabled 并不是想象中的 用户是否 锁定。而是 LockoutEnabled 标示 登陆是否此用户要检查LockoutEndDateUtc字段。如果为true则判断LockoutEndDateUtc 是否大于或者等于utc.now时间, 提示用户已被锁定。更详细的描述参见: ht... 阅读全文
移动硬盘部分分区不能访问问题
2010-10-22 00:59 by 蜡笔小旧, 1693 阅读, 收藏,
摘要:
Checking file system on J:The type of the file system is NTFS.Volume label is 新加卷.Read failure with status 0xc00000b5 at offset 0xc0000000 for 0x10000 bytes.Read failure with status 0xc00000a3 at offs... 阅读全文
浙公网安备 33010602011771号