protected void Page_Load(object sender, EventArgs e) { string backurl = RequestTool.RequestString("backurl"); int IsLogin = 0; if (backurl.ToLower().IndexOf(URL("P_Login", "").ToLower()) > -1) { IsLogin = 1; } if (backurl == "" || backurl.ToLower().IndexOf(URL("P_Login", "").ToLower()) > -1 || backurl.ToLower().IndexOf(URL("P_Register", "").ToLower()) > -1 || backurl.ToLower().IndexOf(URL("P_FindPassword", "").ToLower()) > -1) { backurl = URL("P_UserCenter", ""); } string res = QQ.GetInstance(DT_id).Login(backurl, IsLogin, DT_id); if (res == "OK") { Response.Redirect(QQ.Instance.DEBackuri(backurl)); //if (backurl == "") // Response.Redirect("../"); //else //{ // Response.Redirect(QQ.Instance.DEBackuri(backurl)); //} } else { Response.Write(res); } }