Answers for "get url in asp.net mvc"

4

c# get url html

using System.Net;

using (WebClient web1 = new WebClient())
	string data = web1.DownloadString("URL");
	Console.WriteLine(data);
}
Posted by: Guest on March-02-2020
0

valid URL check in c#

public static bool CheckURLValid(this string source) => Uri.TryCreate(source, UriKind.Absolute, out Uri uriResult) && uriResult.Scheme == Uri.UriSchemeHttps;
Posted by: Guest on September-30-2020

Code answers related to "get url in asp.net mvc"

Browse Popular Code Answers by Language