How do you safely encode a URL using Javascript such that it can be put into a GET string?
here is what i am doing in Jquery:
var url = "mynewpage.aspx?id=1234";
$(location).attr('href', url);
and in the asp.net page_load i am reading this:
_string _id = Request.QueryString["id"].ToString();
so my question is: how can i encode the id in Jquery/JS and decode in asp.net (c#) ?