Beispiel #1
0
        //------------------------------------------------------------------------------------------ static --
        /// <summary>Returns first value from Query String (immediately after question mark) if does not contain an '=' sign; else returns empty string.</summary>
        public static string GetFirstValue_NonKeyParameter()
        {
            string rtn = "";

            string firstItem = window.location.search.split('&')[0].replace("?", "");

            if (!StringStatic.Contains(firstItem, "=", false))
            {
                rtn = firstItem;
            }

            return(rtn);
        }
Beispiel #2
0
 //----------------------------------------------------------------------------------------------------
 public bool Contains(string value, bool ignoreCase)
 {
     return(StringStatic.Contains(this.StringValue, value, ignoreCase));
 }