Пример #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);
        }
Пример #2
0
        //------------------------------------------------------------------------------------------ static --
        public static bool IsVisible2(jQuery jRoot, string elementClassName)
        {
            try
            {
                if (!StringStatic.StartsWith(elementClassName, ".", false))
                {
                    elementClassName = "." + elementClassName;
                }

                return(IsVisible1(jRoot.find(elementClassName)[0]));
            }
            catch { }
            return(false);
        }
Пример #3
0
 //----------------------------------------------------------------------------------------------------
 public bool IsNullOrWhiteSpace()
 {
     return(StringStatic.IsNullOrWhiteSpace(this.StringValue));
 }
Пример #4
0
 //----------------------------------------------------------------------------------------------------
 public bool IsNullOrEmpty()
 {
     return(StringStatic.IsNullOrEmpty(this.StringValue));
 }
Пример #5
0
 //----------------------------------------------------------------------------------------------------
 public int RemoveNonNumericChars(int defaultIfError)
 {
     return(StringStatic.RemoveNonNumericChars(this.StringValue, defaultIfError));
 }
Пример #6
0
 //----------------------------------------------------------------------------------------------------
 public bool Contains(string value, bool ignoreCase)
 {
     return(StringStatic.Contains(this.StringValue, value, ignoreCase));
 }