public string No 
        { 
            get 
            { 
                try 
                { 
                    HttpCookie No = new HttpCookie("No"); 
                    No = this._page.Request.Cookies["No"]; 
                    return HttpUtility.UrlDecode(No.Value); 
                } 
                catch 
                { 
                    return ""; 
                } 
            } 
            set 
            { 
                HttpCookie No = new HttpCookie("No", HttpUtility.UrlEncodeUnicode(value)); 
                this._page.Response.Cookies.Add(No); 
            } 
        }
这个不时类
是属性
一个名字叫No的string属性

解决方案 »

  1.   

    一个叫No的属性,它的值保存在Cookies里面
      

  2.   

    这个不是类 
    是属性 
    一个名字叫No的string属性
      

  3.   

    把Cookies封装了的类而已。里面有一个No属性。
      

  4.   

    是一个属性。代码没有贴全。 
    public class Cookie
        {
            private Page _page;
            private string _purview;
            public Cookie(Page page)
            {
                //
                // TODO: 在此处添加构造函数逻辑
                //
                this._page = page;
                this._purview += this.PurviewOpProjectManage ? "1," : "0,";
                this._purview += this.PurviewOpProjectView ? "1," : "0,";
                this._purview += this.PurviewOpLogViewLowerDep ? "1," : "0,";
                this._purview += this.PurviewOpLogViewSameDep ? "1," : "0,";
                //20060705
                //this._purview += this.PurviewOpLogQueryLowerDep ? "1," : "0,";
                //this._purview += this.PurviewOpLogQuerySameDep ? "1," : "0,";
                //20060705
                this._purview += this.PurviewOpUserManage ? "1," : "0,";
                this._purview += this.PurviewOpUserView ? "1," : "0,";
                this._purview += this.PurviewOpUserPurview ? "1," : "0,";
                this._purview += this.PurviewOpDepartmentManage ? "1," : "0,";
                this._purview += this.PurviewOpDepartmentView ? "1," : "0,";
                this._purview += this.PurviewOpNotifyManage ? "1," : "0,";
                this._purview += this.PurviewOpDocumentFolderManage ? "1," : "0,";
                this._purview += this.PurviewOpDocumentDocManage ? "1," : "0,";
                this._purview += this.PurviewOpDocumentDocDownAll ? "1," : "0,";
                this._purview = this._purview.Substring(0, this._purview.Length - 1);
            }
            public Cookie()
            {
                this._page = new Page();
            }public string No
            {
                get
                {
                    try
                    {
                        HttpCookie No = new HttpCookie("No");  //这里看不懂,谢谢
                        No = this._page.Request.Cookies["No"];  //这里看不懂,谢谢
                        return HttpUtility.UrlDecode(No.Value);//这里看不懂,谢谢
                    }
                    catch
                    {
                        return "";
                    }
                }
                set
                {
    //这里看不懂,谢谢
             HttpCookie No = new HttpCookie("No", HttpUtility.UrlEncodeUnicode(value));
             this._page.Response.Cookies.Add(No);
                }
            }