2010年3月23日

JavaScript的trim函数

摘要: function trimString(strInput) { var str = strInput; whitespace = ' \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000' ; for ( var i = 0,len =... 阅读全文

posted @ 2010-03-23 15:24 冰危节奏 阅读(230) 评论(0) 推荐(0) 编辑

域登录获取用户名字的控制

摘要: I'm writing a web application which uses windows authentication and I can happily get the user's login name using something like:But I don't need their login name I want their DisplayName. I've been b... 阅读全文

posted @ 2010-03-23 10:58 冰危节奏 阅读(650) 评论(0) 推荐(0) 编辑

域登录获得用户名称

摘要: DirectoryEntry entry = new DirectoryEntry(); entry.Path = "LDAP://OU=People,DC=RCOMM,DC=local"; entry.AuthenticationType = AuthenticationTypes.Secure; DirectorySearcher search = new DirectorySearcher(... 阅读全文

posted @ 2010-03-23 10:56 冰危节奏 阅读(337) 评论(0) 推荐(0) 编辑

导航