예제 #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];
 }
예제 #2
0
        public static PageRenderModePageCache GetPageRenderModeCache(Page page)
        {
            PageRenderModePageCache cache = (PageRenderModePageCache)page.Items[_S_PageRenderModeCacheKey];

            if (cache == null)
            {
                cache = new PageRenderModePageCache();
                page.Items[_S_PageRenderModeCacheKey] = cache;
            }

            return(cache);
        }
예제 #3
0
 public static string GetStringFromPageRenderModeCache(PageRenderModePageCache cache)
 {
     return(JSONSerializerExecute.Serialize(cache));
 }