Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I’m on the following URL: http://www.mywebsite.com:80/pages/page1.aspx I need to return:...
  • May 21, 2022
  • 0 Comments
I would like to know the differences between these two types of URLs: relative URLs (for pictures, CSS files, JS files, etc.) and absolute URLs. In addition, which one...
  • May 21, 2022
  • 0 Comments
Java EE has ServletRequest.getParameterValues(). On non-EE platforms, URL.getQuery() simply returns a string. What’s the normal way to properly parse the query string in a URL when not on Java...
  • May 19, 2022
  • 0 Comments
I’ve got a string in .NET which is actually a URL. I want an easy way to get the value from a particular parameter. Normally, I’d just use Request.Params["theThingIWant"],...
  • May 17, 2022
  • 0 Comments