blazor get url code example
Example 1: javascript get current url
var currentUrl = window.location.href;
Example 2: c# get url html
using System.Net;
using (WebClient web1 = new WebClient())
string data = web1.DownloadString("URL");
Console.WriteLine(data);
}