protected void ProcessSignInForum() { string validateCodeAction = "SignInForum"; MessageDisplay msgDisplay = CreateMessageDisplay(); if (CheckValidateCode(validateCodeAction, msgDisplay)) { string password = _Request.Get("Password", Method.Post, string.Empty); if (password == string.Empty) { msgDisplay.AddError("请输入版块密码"); return; } if (password == Forum.Password) { My.AddValidatedForumID(Forum.ForumID, password); //Response.Redirect(_Request.Get("UrlReferrer", Method.Post, BbsUrlHelper.GetForumUrl(Forum.CodeName))); int threadID = _Request.Get <int>("threadid", Method.Get, 0); if (threadID > 0) { Response.Redirect(BbsUrlHelper.GetThreadUrl(Forum.CodeName, threadID, 1)); } else { Response.Redirect(BbsUrlHelper.GetForumUrl(Forum.CodeName)); } } else { msgDisplay.AddError("密码不正确"); } } }