C#检查字符串是否是合法的URL地址
protected string HTTPChecker(string Value) { if ((Value.Substring(0, 7) != "http://") && (Value.Substring(0, 8) != "https://") ) { Value = "http://" + Value; } return Value; } //END HTTPChecker
C#检查字符串是否是合法的URL地址
protected string HTTPChecker(string Value) { if ((Value.Substring(0, 7) != "http://") && (Value.Substring(0, 8) != "https://") ) { Value = "http://" + Value; } return Value; } //END HTTPChecker