form 认证, 我的default页面 不在根目录下,每次认证却导航到根本default页面我是这样写的 当通过认证后 我希望能导航到web目录下的default页面
string password = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, "MD5") ;
// 提交登录信息
Customer accountSystem = new Customer();
String customerId = accountSystem.Login(TxtUserName.Text,password ); if (customerId != null)
{
// 为了实现个性化,在cookie中保存顾客的姓名
Response.Cookies["CustomerName"].Value = TxtUserName.Text.Trim(); // 重定向到刚才的页面
FormsAuthentication.RedirectFromLoginPage(TxtUserName.Text.Trim(),false); ShowLoginMessage();
}
string password = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text, "MD5") ;
// 提交登录信息
Customer accountSystem = new Customer();
String customerId = accountSystem.Login(TxtUserName.Text,password ); if (customerId != null)
{
// 为了实现个性化,在cookie中保存顾客的姓名
Response.Cookies["CustomerName"].Value = TxtUserName.Text.Trim(); // 重定向到刚才的页面
FormsAuthentication.RedirectFromLoginPage(TxtUserName.Text.Trim(),false); ShowLoginMessage();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货