Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use decodeURIComponent in asp?

From my javascript i try to post data to my asp page using encodeURIComponent

var dd = encodeURIComponent(document.getElementById("Remarks").innerHTML);

How i decode my encodeURIComponent in asp page using vbscript?

hoping your support

like image 289
Alex Avatar asked Dec 30 '22 01:12

Alex


1 Answers

i think you mean you want to decode the URI component in the vb.net code behind and not vb script.

the thing here is you don't have to it...Request.Querystring("query_string_variable") automatically does it for you.

if you explicitly want to do it you can use

HttpUtility.UrlDecode() in .net

if you want to do it in VBscript , see the answer by Valerio

like image 200
Pankaj Kumar Avatar answered Jan 10 '23 13:01

Pankaj Kumar