How to remove the port number from a url string
- by Brono The Vibrator
I have the following code snippet:
string tmp = String.Format("javascript:window.open('{0}');", url);
ClientScript.RegisterClientScriptBlock(this.GetType(), "NewWindow", tmp);
the url generated by this code include the port number and I think that is happening becasue 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 supress the port number in the url string generated by this code?