protected WebBasePage(HttpContext context, RequestDelegate next, PageSourceInfo info) { TkDebug.AssertArgumentNull(context, nameof(context), null); TkDebug.AssertArgumentNull(next, nameof(next), null); TkDebug.AssertArgumentNull(info, nameof(info), null); Context = context; Session = context.Session; Request = context.Request; Response = context.Response; Next = next; QueryString = new QueryStringWrapper(Request.Query); SessionGbl = WebGlobalVariable.SessionGbl; IsPost = HttpMethods.IsPost(Request.Method); fSupportLogOn = true; string localUrl = Request.GetDisplayUrl(); fUrl = new Uri(localUrl); SelfUrl = InternalUriUtil.GetSelfUrl(new Uri(localUrl)); string retUrl = ObjectUtil.GetDefaultValue(Request.Query["RetUrl"].ToString(), string.Empty); RetUrl = string.IsNullOrEmpty(retUrl) ? null : new Uri(retUrl, UriKind.RelativeOrAbsolute); fPageSourceInfo = info; //Style = fPageSourceInfo.Style; }
public CompositePageMaker(IPageData pageData) { if (pageData != null) { string retUrl = ObjectUtil.GetDefaultValue(pageData.QueryString["RetUrl"], string.Empty); Uri ret = string.IsNullOrEmpty(retUrl) ? null : new Uri(retUrl, UriKind.RelativeOrAbsolute); fParent = new InternalCallerInfo(pageData, WebGlobalVariable.SessionGbl, ret, pageData.PageUrl); } }