1,web.config中的登錄認證格式如下:
<sessionState mode="InProc" cookieless="false"/>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms loginUrl="logon.aspx" timeout="6000" path="/"> </forms>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization> 2,有一網頁通過如下方法打開一窗口,在我電腦上可以,在其它電腦上,就會跳轉到logon.aspx,為什么?
e.Row.Cells[6].Text=" <a href='#' onclick=javascript:win.openwin('showattachment.aspx?fileno="+e.Row.Cells[1].Text+"&tableid="+tid+"','abc','width=780,height=400')>附件 </a>";
我的電腦行,是我的電腦安裝有ajax的緣故麼? 謝謝!
<sessionState mode="InProc" cookieless="false"/>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms loginUrl="logon.aspx" timeout="6000" path="/"> </forms>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization> 2,有一網頁通過如下方法打開一窗口,在我電腦上可以,在其它電腦上,就會跳轉到logon.aspx,為什么?
e.Row.Cells[6].Text=" <a href='#' onclick=javascript:win.openwin('showattachment.aspx?fileno="+e.Row.Cells[1].Text+"&tableid="+tid+"','abc','width=780,height=400')>附件 </a>";
我的電腦行,是我的電腦安裝有ajax的緣故麼? 謝謝!
如果是,这个目录是不是也有个web.config
<deny users="?"/> 首先拒绝匿名用户的登录
<allow users="*"/> 通过验证的用户都可以