62,046
社区成员
发帖
与我相关
我的任务
分享
string sPassword = new API().tools.MD5(this.Password.Text.ToString());
object userID = DB.user_login( PageBoardID, UserName.Text, sPassword );//根据用户名获取用户ID
if (Session["CheckCode"].ToString().ToUpper() == this.Txt_imgCode.Value)//验证码识别
{
if (userID != DBNull.Value)
{
string idName = string.Format("{0};{1};{2}", userID, PageBoardID, UserName.Text);
if (Request.QueryString["ReturnUrl"] != null)
{
FormsAuthentication.RedirectFromLoginPage(idName, AutoLogin.Checked);//这里怎么form验证后跳转到其化页面,比如说b.aspx,但要完成login.aspx的登陆
}
else
{
FormsAuthentication.SetAuthCookie(idName, AutoLogin.Checked););//这里怎么form验证后跳转到其化页面,比如说b.aspx,但要完成login.aspx的登陆
Forum.Redirect(Pages.forum);
}
}
else
{
AddLoadMessage(GetText("password_error"));
}