如何在asp中使用decodeURIComponent?

Ale*_*lex 3 javascript asp-classic

从我的JavaScript我尝试使用encodeURIComponent将数据发布到我的asp页面

var dd = encodeURIComponent(document.getElementById("Remarks").innerHTML);
Run Code Online (Sandbox Code Playgroud)

我如何使用vbscript在asp页面中解码我的encodeURIComponent?

希望你的支持

Pan*_*mar 8

我认为你的意思是你要解释后面的vb.net代码中的URI组件而不是vb脚本.

这里的事情是你没有它... Request.Querystring("query_string_variable")自动为你做.

如果您明确想要这样做,您可以使用

HttpUtility.UrlDecode() 在.net

如果你想在VBscript中做到这一点,请参阅Valerio的回答