/// <summary>
 /// 文件方式输出页面状态
 /// </summary>
 /// <param name="contentTypeKey">页面内容类型ContentType的Key值</param>
 /// <param name="dispositionType">页面打开文件类型</param>
 /// <param name="attachmentFileName">文件名称</param>
 /// <param name="renderArgument">输出参数</param>
 public PageRenderMode(string contentTypeKey, ResponseDispositionType dispositionType, string attachmentFileName, string renderArgument)
 {
     this._UseNewPage         = true;
     this._ContentTypeKey     = contentTypeKey;
     this._DispositionType    = dispositionType;
     this._AttachmentFileName = attachmentFileName;
     this._RenderArgument     = renderArgument;
 }
 private void Load(string strData)
 {
     string[] strArray = strData.Split('^');
     _UseNewPage            = bool.Parse(strArray[0]);
     _ContentTypeKey        = strArray[1];
     _DispositionType       = (ResponseDispositionType)Enum.Parse(typeof(ResponseDispositionType), strArray[2], true);
     _AttachmentFileName    = strArray[3];
     _RenderControlUniqueID = strArray[4];
     _PageCache             = PageRenderModeHelper.GetPageRenderModeCacheFromString(strArray[5]);
     _RenderArgument        = strArray[6];
 }
Exemple #3
0
 /// <summary>
 /// 通过页面输出状态,加载控件的输出状态
 /// </summary>
 /// <param name="pageRenderMode">页面输出模式</param>
 /// <remarks>通过页面输出状态,加载控件的输出状态</remarks>
 public void LoadFromPageRenderMode(PageRenderMode pageRenderMode)
 {
     //if (!string.IsNullOrEmpty(controlUniqueID) && controlUniqueID == pageRenderMode.RenderControlUniqueID)
     //{
     //    this._OnlyRenderSelf = true;
     //}
     this._UseNewPage         = pageRenderMode.UseNewPage;
     this._ContentTypeKey     = pageRenderMode.ContentTypeKey;
     this._DispositionType    = pageRenderMode.DispositionType;
     this._AttachmentFileName = pageRenderMode.AttachmentFileName;
     this._PageCache          = pageRenderMode.PageCache;
     this._RenderArgument     = pageRenderMode.RenderArgument;
 }
 /// <summary>
 /// 文件方式输出某控件状态
 /// </summary>
 /// <param name="contentTypeKey">页面内容类型ContentType的Key值</param>
 /// <param name="dispositionType">页面内容类型</param>
 /// <param name="attachmentFileName">页面打开文件类型</param>
 /// <param name="renderControlUniqueID">单独输出控件UniqueID</param>
 /// <param name="renderArgument">输出参数</param>
 public PageRenderMode(ResponseContentTypeKey contentTypeKey, ResponseDispositionType dispositionType, string attachmentFileName, string renderControlUniqueID, string renderArgument)
     : this(contentTypeKey.ToString(), dispositionType, attachmentFileName, renderControlUniqueID, renderArgument)
 {
 }
 /// <summary>
 /// 文件方式输出某控件状态
 /// </summary>
 /// <param name="contentTypeKey">页面内容类型ContentType的Key值</param>
 /// <param name="dispositionType">页面内容类型</param>
 /// <param name="attachmentFileName">页面打开文件类型</param>
 /// <param name="renderControlUniqueID">单独输出控件UniqueID</param>
 /// <param name="renderArgument">输出参数</param>
 public PageRenderMode(string contentTypeKey, ResponseDispositionType dispositionType, string attachmentFileName, string renderControlUniqueID, string renderArgument)
     : this(contentTypeKey, dispositionType, attachmentFileName, renderArgument)
 {
     this._UseNewPage            = false;
     this._RenderControlUniqueID = renderControlUniqueID;
 }
		/// <summary>
		/// 通过页面输出状态,加载控件的输出状态
		/// </summary>
		/// <param name="pageRenderMode">页面输出模式</param>
		/// <remarks>通过页面输出状态,加载控件的输出状态</remarks>
		public void LoadFromPageRenderMode(PageRenderMode pageRenderMode)
        {
            //if (!string.IsNullOrEmpty(controlUniqueID) && controlUniqueID == pageRenderMode.RenderControlUniqueID)
            //{
            //    this._OnlyRenderSelf = true;
            //}
			this._UseNewPage = pageRenderMode.UseNewPage;
            this._ContentTypeKey = pageRenderMode.ContentTypeKey;
            this._DispositionType = pageRenderMode.DispositionType;
            this._AttachmentFileName = pageRenderMode.AttachmentFileName;
            this._PageCache = pageRenderMode.PageCache;
            this._RenderArgument = pageRenderMode.RenderArgument;

        }