Quantcast
Channel: Security Vulnerability
Viewing all articles
Browse latest Browse all 317

How to decode a string that is encoded using Encoder.Javascriptencode in Antixsslibrary

$
0
0

HI Every one,

I have a java script method that accepts two parameters. From code behind I am registering that method as a startup script (using ClientScript.RegisterStartupScript) by passing user input as method parameters to that javascript method. While passing I am javascriptencoding those parameters using Encoder.Javascriptencode in Antixsslibrary.

Can you pls help me with below questions.

1.how can i decode those parameters within that javascript method..? does javascript methods  decodeURI()/decodeURIComponent() can do the perfect decoding of what is actually encoded by Encoder.Javascriptencode in Antixsslibrary..? or are there any limitations in using that..

2. Let us say that we are not decoding anything within that javascript method, and That javascript method is creating a dynamic form and posting those method parameteres to different aspx file as form content.. in that case how do i decode those values( Which are previously encoded using Encoder.Javascriptencode in Antixsslibrary) on the server side (code behind of target aspx file)..?

Thank you,

Pavan.


Viewing all articles
Browse latest Browse all 317

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>