如题,小妹不才,希望大侠们给个完整代码

解决方案 »

  1.   

    类似CSDN的登陆代码?你是指登陆后几秒钟又返回到登录前的页面?其实它将登陆前的页面放在url中一起传到登陆页面了的。在登陆页面中弄个settimeout,设定几秒钟就返回就可以了
      

  2.   

    到51aspx.com里
    jwindow弹出模式窗口
    调用OpenJWindow('#openwin', url, width,height, EditClosed);
    直接关闭登录页面调用document.getElementById("btn").clcik() 刷新页面
    response.redirect(Request.UrlReferrer.AbsoluteUri)
    post传递原地址到登录页面
      

  3.   

    我知道是用cookie保存,但是具体的实现不是很清楚,希望给个完整代码,谢谢
      

  4.   


    保存username对象(这里是一个字符串)到cookies中
      HttpCookie cookies_username = new HttpCookie("username");
      cookies_username.Value = Server.UrlEncode(username);
      cookies_username.Expires = DateTime.Now.AddDays(10);
      Response.AppendCookie(cookies_username);
    获取Request.Cookies["username"].Value.ToString();