ASP.NET 4.0, webform site
There is a link in my site is to call another page and pass url parameters, it looks like below.
http://www.foo.com/foo.aspx?anotherURI?param1=aaa&26param2=bbb
However, I need to do url encode for "anotherURI?param1=aaa&26param2=bbb", so it turns into:
http://www.foo.com/foo.aspx?anotherURI?param1%3Daaa%26param2%3Dbbb
Now if I want to enclose this with javascript, it won't work. How do I encode the url again?
javascript:void(window.open('http://www.foo.com/foo.aspx?anotherURI?param1%3Daaa%26param2%3Dbbb', 'popup'))