wallpaper

Request.Url

Retrieve the fully URL without a QueryString

AFAIK, there

Convert the Request URL to an SSL/HTTPS link

For example to take the current request URL and converted it to a secure URL can be done like this:

Secure Sockets Layer (SSL).

UriBuilder build = new UriBuilder(Request.Url);
build.Scheme = "https";
build.Port = -1;  // don't inject port

Uri newUri = build.Uri;
string newUrl = build.ToString();