2013年9月24日

AD验证是什么?

摘要: AD验证是什么?老是在各路系统手册上看到AD验证的字样,不过AD验证到底是什么不甚了了。AD-- Active Directory活动目录,是windows server特有的信息管理形式。AD验证可以简单的理解为域验证,用户名/密码【用户凭据】放在一台服务器上,每台计算机登陆时, 用服务器上的用户名/密码 验证。以下为基本原理,摘自百度百科。Active Directory 首先是一种服务,是windows平台的核心组件之一。活动目录(Active Directory)是面向Windows Standard Server、Windows Enterprise Server以及 Windows 阅读全文

posted @ 2013-09-24 17:48 YoungPop_Chen 阅读(1056) 评论(0) 推荐(0) 编辑

使用httpContext做AD认证

摘要: 在 2.0 的時候,若要做 AD 驗證機制是使用 DirectoryServices 來進行實作,但到了 3.5 ,要實作 AD 驗證比以往方便很多。在實作之前需要將 System.DirectoryServices.AccountManagement.dll 加入參考01privatestaticPrincipalContext _pc =null;//宣告PrincipalContext02/// 03/// 驗證帳密04/// 05/// 驗證型態06/// 使用者名稱07/// 使用者密碼08/// 驗證通過回傳真值09publicstaticBoolean CheckUser(Val 阅读全文

posted @ 2013-09-24 17:46 YoungPop_Chen 阅读(248) 评论(0) 推荐(0) 编辑

jQuery中:first-child的使用问题

摘要: Test1aaaaabbbbbTest2cccccddddd用first-child可以取出每一个之中的元素,用first就不行。明白?在jQuery的子元素过滤选择器中,:first-child的使用需要注意一点,文档中说的例子是这样用的:$("ul li:first-child").addClass("highlight");它实现的作用是获取到所有ul下面的第一个li元素,与:first有区别。$("ul li:first").addClass("highlight");:first只获取一个ul中的第一个l 阅读全文

posted @ 2013-09-24 12:03 YoungPop_Chen 阅读(637) 评论(0) 推荐(0) 编辑

Server.UrlEncode、HttpUtility.UrlDecode区别

摘要: 在对URL进行编码时,该用哪一个?这两都使用上有什么区别吗?测试:string file="文件上(传)篇.doc";string Server_UrlEncode=Server.UrlEncode(file);string Server_UrlDecode=Server.UrlDecode(Server_UrlEncode);string HttpUtility_UrlEncode=System.Web.HttpUtility.UrlEncode(file);string HttpUtility_UrlDecode=System.Web.HttpUtility.UrlDe 阅读全文

posted @ 2013-09-24 11:21 YoungPop_Chen 阅读(195) 评论(0) 推荐(0) 编辑

导航