webconfig下:
<system.web>
<httpRuntime maxRequestLength="2048000" executionTimeout="30"/>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="Hzjyq.Jyjszx.AppWeb" path="/" timeout="30"/>
</authentication>
</system.web>
如果用到了框架显示页面,解决会在框架中加载登录页面的问题可使用以下方法:
在login的登录页面中嵌入下面的js代码
<script language="JavaScript">
if (window != top)
{
top.location.href = location.href;
}
</script>