예제 #1
0
        /// <summary>
        /// Gets the page parameter value given it's name.
        /// </summary>
        /// <param name="name">The name of the page parameter to retrieve.</param>
        /// <returns>The text string representation of the page parameter or an empty string if no matching parameter was found.</returns>
        public virtual string GetPageParameter(string name)
        {
            if (PageParameters.ContainsKey(name))
            {
                return(PageParameters[name]);
            }

            return(string.Empty);
        }
예제 #2
0
        public string GetPageParameterString(string name)
        {
            if (!PageParameters.ContainsKey(name))
            {
                return(null);
            }
            if (PageParameters[name] == null)
            {
                return(null);
            }
            string val = PageParameters[name].Trim();

            if (String.IsNullOrWhiteSpace(val))
            {
                return(null);
            }

            return(val);
        }
예제 #3
0
 /// <summary>
 /// Pages the parameter.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <returns></returns>
 protected new string PageParameter(string key)
 {
     return(PageParameters.ContainsKey(key) ? PageParameters[key] : string.Empty);
 }