我是刚进 csdn 的,分不多,请谅解!!
我在 web.config 中的 身份验证 节的配置如下:
<authentication mode="Forms">
<forms name="msn" loginUrl="Login.aspx" protection="All" path="./"/>
</authentication>在 Login.aspx.cs文件中的处理是 : FormsAuthentication.RedirectFromLoginPage(tbUsername.Text, false);
Response.Redirect("./Main.aspx");但是我输入正确的用户名和密码后页面并没有重定向到 Main.aspx 页面,而是还在Login.aspx页面,请问这是怎么回事呀,请高手帮帮忙,谢谢!!
谢谢回帖!!
to symbol441(≮西门潇洒≯)
贴上验证的完整代码吧
========================================》
<authentication mode="Forms">
<forms name="msn" loginUrl="Login.aspx" protection="All" path="./"/>
</authentication> 这个就是验证的所有代码了呀
to chuxue1342(@楚}===天{==========雪饮>)
改成 true 还是不行呀!!
到底怎么回事呀,请帮帮我呀!
这句就已经跳转了吧?,所以Response.Redirect( "./Main.aspx ");这句没用
里面加上红色的那句,试试