webconfig设定---authentication 在线等待
hepp 2003-02-24 09:13:04 为了防止用户直接输入类似http://localhost/ehr/index.aspx?systemid=KS&moduleid=X的地址而不经过index.aspx登陆。我在webconfig里面做了如下设定:<authentication mode="Forms">
loginUrs="index.aspx"
</authentication>
这样我无论输入什么样的网址都要进行index.aspx登陆,可是同样出现了一个问题,我index.aspx得初始化事件里面写的代码用来读取登陆用户的NT账号,却怎么也读不出来了,代码如下,请高手示下。