Beispiel #1
0
        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;
        }
Beispiel #2
0
 public WebUploadPage(HttpContext context, RequestDelegate next, PageSourceInfo info)
     : base(context, next, info)
 {
     SupportLogOn = false;
     fSource      = new UploadSource();
 }
 public WebModuleContentPage(HttpContext context, RequestDelegate next, PageSourceInfo info)
     : base(context, next, info)
 {
     fModule = UrlInfo.CreateModule();
 }
Beispiel #4
0
 protected WebBaseModuleRedirectPage(HttpContext context, RequestDelegate next, PageSourceInfo info)
     : base(context, next, info)
 {
 }
Beispiel #5
0
 public WebExcelPage(HttpContext context, RequestDelegate next, PageSourceInfo info)
     : base(context, next, info)
 {
 }