public WxeCallOptionsExternalByRedirect(WxePermaUrlOptions permaUrlOptions, bool returnToCaller, NameValueCollection callerUrlParameters)
     : base(permaUrlOptions)
 {
     _returnToCaller      = returnToCaller;
     _callerUrlParameters = callerUrlParameters;
 }
Beispiel #2
0
 public WxeCallOptions(WxePermaUrlOptions permaUrlOptions)
     : base(permaUrlOptions)
 {
 }
        /// <summary> Gets the URL to be used for transfering to the external function. </summary>
        internal string GetDestinationUrlForExternalFunction(WxeFunction function, string functionToken, WxePermaUrlOptions permaUrlOptions)
        {
            string href;

            if (permaUrlOptions.UsePermaUrl)
            {
                NameValueCollection internalUrlParameters;
                if (permaUrlOptions.UrlParameters == null)
                {
                    internalUrlParameters = function.VariablesContainer.SerializeParametersForQueryString();
                }
                else
                {
                    internalUrlParameters = permaUrlOptions.UrlParameters.Clone();
                }
                internalUrlParameters.Set(WxeHandler.Parameters.WxeFunctionToken, functionToken);

                href = GetPermanentUrl(function.GetType(), internalUrlParameters, permaUrlOptions.UseParentPermaUrl);
            }
            else
            {
                UrlMappingEntry mappingEntry = UrlMappingConfiguration.Current.Mappings[function.GetType()];
                string          path         = (mappingEntry != null) ? mappingEntry.Resource : _httpContext.Request.Url.AbsolutePath;
                href = GetPath(path, functionToken, permaUrlOptions.UrlParameters);
            }

            return(href);
        }
Beispiel #4
0
 public WxeCallOptionsNoRepost(bool?usesEventTarget, WxePermaUrlOptions permaUrlOptions)
     : base(permaUrlOptions)
 {
     _usesEventTarget = usesEventTarget;
 }
Beispiel #5
0
 public WxeCallOptionsNoRepost(WxePermaUrlOptions permaUrlOptions)
     : this(null, permaUrlOptions)
 {
 }
        public WxeCallArgumentsWithoutSender(WxePermaUrlOptions permaUrlOptions)
        {
            ArgumentUtility.CheckNotNull("permaUrlOptions", permaUrlOptions);

            _permaUrlOptions = permaUrlOptions;
        }
        public WxeCallOptionsExternal(string target, string features, bool returningPostback, WxePermaUrlOptions permaUrlOptions)
            : base(permaUrlOptions)
        {
            ArgumentUtility.CheckNotNullOrEmpty("target", target);

            _target            = target;
            _features          = features;
            _returningPostback = returningPostback;
        }
        protected WxeCallOptionsBase([NotNull] WxePermaUrlOptions permaUrlOptions)
        {
            ArgumentUtility.CheckNotNull("permaUrlOptions", permaUrlOptions);

            _permaUrlOptions = permaUrlOptions;
        }