encodeURIComponent를 사용하여 쿼리 문자열로 보냅니다.하지만 asp.net 페이지에서 가져온 것은 변경된 것입니다. 여기에 코드가 있습니다. Querystring에서 encodeURIComponent 문제가 발생했습니다.
var postType = encodeURIComponent($(obj).parents(".post").attr("data-item-type"));
var postId = encodeURIComponent($(obj).parents(".post").attr("data-item"));
window.location.href = "PostDetail.aspx?" + GetGUID() + '&pId=' + postId + '&pType=' + postType;
및 ASP 페이지에서
는 URL에는 ASP 페이지는 "rEpJZ8IDRfIbFpptDl입니다
하지만 올바른"rEpJZ8IDRfIbFpptDl %의 2B84w %의 3D % 3D & pType을 = ereq47B7tt0BQMO5nRRbOQ %의 3D %의 3D "를 보여줍니다 84w == "HttpUtility.UrlDecode (Request.QueryString ("pId ")) 후
계신가요? –