Archive for the ‘Paths In ASP .NET’ Category

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();

Request Object of ASP .NET related to Paths

Request Object Here’s a list of the Path related properties on the Request object (and the Page object). Assume a path like http://www.avmendapara.com/wallpaper/admin/paths.aspx for the paths below where webstore is the name of the virtual. here property of request object given ApplicationPath : Returns the web root-relative logical path to the virtual root of this [...]