Validation of a URL
To validate a URL entered in asp:textbox ...whether its valid or not ?
Call following function by passing url as parameter
private bool IsValidUrl(string url)
{
return System.Text.RegularExpressions.Regex.IsMatch(url,"(httpftphttps)://") ;
}
If it returns true its valid else not.
Call following function by passing url as parameter
private bool IsValidUrl(string url)
{
return System.Text.RegularExpressions.Regex.IsMatch(url,"(httpftphttps)://") ;
}
If it returns true its valid else not.