tags:

views:

342

answers:

2

hi friends,

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

A: 

I wonder why you want to decode it, it is there for the browser to accept a valid url.

Sarfraz
A: 

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 really to do it in vbscript maybe this link may help you http://www.kamath.com/codelibrary/cl006_url.asp

Pankaj Kumar