use variable instead of hiddenfield using jquery [Resolved]

Posted by Klbaiju under jQuery on 3/19/2016 | Points: 10 | Views : 1413 | Status : [Member] | Replies : 1
Hi all,

in my application iam using hiddenfields for storing values.

during testing the application ,i found that every one can change the value of hiddenfield in browser and crack the application.

so iam thinking of hiddenfield with varibles using jquery.

currently iam setting the value of hiddenfield using c# like this

in load event


hddate.Value = newyear;
hfdate.Value = nyear;
hdfval.Value = fval;

here hddate,hfdate and hdfval are hiddenfields .

my requirement is declare varible using jquery.

like

var hddate;

var hfdate;

var hdfval;

how to set value to these varible in c# file like above

Regards

Baiju




Responses

Posted by: Rajnilari2015 on: 3/22/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Use
var value = "<%=SomeVariable%>"

That should solve the problem.

--
Thanks & Regards,
RNA Team

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response