Query string hashing

jack jack asked on September 16, 2014 08:57

I have set default values for form fields by passing query string variables from code behind. How can I achieve query string hashing to protect data. I have a link like this:

literalControl="<a href='http://test.com/testpage?param1=" + variabl1.Text + "&param2=" + variable2.Text'>click here";

and on bizform i am using {?param1?}

Correct Answer

Juraj Komlosi answered on September 18, 2014 18:55

Hi Jack,
if you want to hash query string, you can use QueryHelper.GetHash() or ValidationHelper.GetHashString() method. These methods return the hash value of the given input. On the page where you need to get any query string parameter value, simply validate the hash using QueryHelper.ValidateHash() or ValdiationHelper.ValidateHash() method. For more details about the hash validation please follow Query string hashing chapter in our documentation.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.