My ASP.NET 4.0 webform site includes a link that calls another page and passes URL parameters. The original link looks like this:
However, I realized I need to URL encode "anotherURI?param1=aaa&26param2=bbb" so it should look like this:
But when trying to enclose this in JavaScript for opening a popup window, it doesn't work. How can I re-encode the URL?
javascript:void(window.open('http://www.foo.com/foo.aspx?anotherURI?param1%3Daaa%26param2%3Dbbb', 'popup'))