[CLOSED] Hidden field value set in java script is empty in code behind page.
Hi,
I have a js function that creates some link and on clicking that link, it calls another js function where i set values for hidden fields . Then,
i navigate to same page where I would like to access these hidden fields , set them as session variables and navigate to some other page.
(basically, I am trying to avaoid query string..)
Code:
App.Hidden1.value = somejavascriptvariable;
App.Hidden2.value = somejsvariable2;
.
.
.
And then trying to
Code:
window.location.href = "samepage.aspx"
In the code behind, on the same page, I am trying to access those hidden fields (this.Hidden1.value) in page load...but they are empty..I debugged to check that hiddenfileds contain values in js.
pls help me find a solution on how I can access the values correctly? Also, as an additional info,
Thanks,
Veda