摘要:        
最近,公司让做个网站,因为是内网的,所以为了方便,采用域用户,而不用重新注册。 1. 下面是根据WindowsPrincipal获取当前域用户的用户名和域using System;using System.Collections.Generic;using System.Web;using System.Security.Principal;using System.Threading;public class MyPrincipal { WindowsPrincipal wp = (WindowsPrincipal)Thread.CurrentPrincipal; /// <summa    阅读全文
posted @ 2011-05-11 15:01
忆起
阅读(2100)
评论(12)
推荐(2)
        
                    
                
浙公网安备 33010602011771号