01
2015
06

【C#、Asp.Net 工具类大全】Cookie常用操作类

使用实例:

private User u = new User();

private string urlPath = "";

protected void Page_Load(object sender, EventArgs e)

{

    if (!Page.IsPostBack)

    {

        #region 基础数据

        u = new User();

        u.UserName = "郑德才";

        u.UserAge = "27";

        u.UserSex = "男";

        u.UserSite = "http://www.zhengdecai.com";

        urlPath = Server.MapPath("~/file/");

        #endregion

        cookieInfo();

    }

}

/// <summary>

/// Cookie测试

/// </summary>

«1»