//------------------------------------------------------------------------------------------ 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); }
//------------------------------------------------------------------------------------------ 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); }
//---------------------------------------------------------------------------------------------------- public bool IsNullOrWhiteSpace() { return(StringStatic.IsNullOrWhiteSpace(this.StringValue)); }
//---------------------------------------------------------------------------------------------------- public bool IsNullOrEmpty() { return(StringStatic.IsNullOrEmpty(this.StringValue)); }
//---------------------------------------------------------------------------------------------------- public int RemoveNonNumericChars(int defaultIfError) { return(StringStatic.RemoveNonNumericChars(this.StringValue, defaultIfError)); }
//---------------------------------------------------------------------------------------------------- public bool Contains(string value, bool ignoreCase) { return(StringStatic.Contains(this.StringValue, value, ignoreCase)); }