Hi,
I need to pass an URL via a hidden value as follow:
<input type="hidden" id="Test" runat="Server">
and on Page_Load I assign a value to this hidden input as follow:
Test.Value = "http://www.myserver.com?id=123&name=HomerSimpson";
However when I view the page source "&" is replaced with "&" as the URL
changes to http://www.myserver.com?id=123&name=HomerSimpson
How can I enforce the "&" inside my querystring when written into HTML?
I have tried to Server.UrlEncode, but the server that I am posting this
hidden value to, does not decode it before returning to the URL, and
unfortuntely I have no control over the way that they handle my hidden value
(URL with &)
Thanks for your time.
Mehdi