Example #1
0
 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];
 }
Example #2
0
 /// <summary>
 /// 转换成字符串数据
 ///
 /// </summary>
 /// <returns>字符串数据</returns>
 public override string ToString()
 {
     return(string.Format("{0}^{1}^{2}^{3}^{4}^{5}^{6}",
                          _UseNewPage, _ContentTypeKey, _DispositionType, _AttachmentFileName, _RenderControlUniqueID, PageRenderModeHelper.GetStringFromPageRenderModeCache(PageCache), _RenderArgument));
 }