login.aspx.cs

来自「一个网上购物系统」· CS 代码 · 共 28 行

CS
28
字号
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void LogInUser(object sender, EventArgs e) {
         //check to see if this person has a cookie
        if (Request.Cookies["shopperID"] != null) {
            string sAnonID = Request.Cookies["shopperID"].Value;

            //get the user id and transfer the cart
            ShoppingCartManager.Transfer(sAnonID, Login1.UserName);
        }                       
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?