AFAIK, there
Posts Tagged ‘Url’
Convert the Request URL to an SSL/HTTPS link
December 28th, 2009
Ankit 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
December 28th, 2009
Ankit 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 [...]
RSS Feed
Twitter
Posted in
Tags: