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属性
{
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属性
是属性
一个名字叫No的string属性
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);
}
}