title: How to remove the port number from a url string
body: <p>I have the following code snippet:</p>
  
  <pre><code>string tmp = String.Format("&lt;SCRIPT FOR='window' EVENT='onload' LANGUAGE='JavaScript'&gt;javascript:window.open('{0}');&lt;/SCRIPT&gt;", url);
  
  ClientScript.RegisterClientScriptBlock(this.GetType(), "NewWindow", tmp);
  </code></pre>
  
  <p>The URL generated by this code include the port number and I think that is happening because port 80 is used by the website and in this code I am trying to load a page from a virtual directory of the website. Any ideas on how to suppress the port number in the URL string generated by this code?</p>