问题描述
privatePage_page;privatestring_purview;publicCookie(Pagepage)----------------------publicstringNo{get{try{HttpCookieNo=newHttpCookie("No");No=this._page.Request.Cookies["No"];returnHttpUtility.UrlDecode(No.Value);}catch{return"";}}set{HttpCookieNo=newHttpCookie("No",HttpUtility.UrlEncodeUnicode(value));this._page.Response.Cookies.Add(No);}}
解决方案
解决方案二:
publicstringNo{get{try{HttpCookieNo=newHttpCookie("No");No=this._page.Request.Cookies["No"];returnHttpUtility.UrlDecode(No.Value);}catch{return"";}}set{HttpCookieNo=newHttpCookie("No",HttpUtility.UrlEncodeUnicode(value));this._page.Response.Cookies.Add(No);}}这个不时类是属性一个名字叫No的string属性
解决方案三:
基本属性操作,看不懂什么地方
解决方案四:
一个叫No的属性,它的值保存在Cookies里面
解决方案五:
引用1楼ericzhangbo1982111的回复:
这个不时类是属性一个名字叫No的string属性
解决方案六:
引用3楼hongqi162的回复:
一个叫No的属性,它的值保存在Cookies里面
解决方案七:
属性
解决方案八:
引用1楼ericzhangbo1982111的回复:
publicstringNo{get{try{HttpCookieNo=newHttpCookie("No");No=this._page.Request.Cookies["No"];returnHttpUtility.UrlDecode(No.Value);}catch{return"";…
解决方案九:
这个不是类是属性一个名字叫No的string属性
解决方案十:
把Cookies封装了的类而已。里面有一个No属性。
解决方案十一:
是一个属性。代码没有贴全。publicclassCookie{privatePage_page;privatestring_purview;publicCookie(Pagepage){////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,";//20060705this._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);}publicCookie(){this._page=newPage();}publicstringNo{get{try{HttpCookieNo=newHttpCookie("No");//这里看不懂,谢谢No=this._page.Request.Cookies["No"];//这里看不懂,谢谢returnHttpUtility.UrlDecode(No.Value);//这里看不懂,谢谢}catch{return"";}}set{//这里看不懂,谢谢HttpCookieNo=newHttpCookie("No",HttpUtility.UrlEncodeUnicode(value));this._page.Response.Cookies.Add(No);}}