Jul 26, 2013, 6:08 PM
[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..)
.
.
And then trying to
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
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..)
App.Hidden1.value = somejavascriptvariable;
App.Hidden2.value = somejsvariable2;
..
.
And then trying to
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
Last edited by Daniil; Aug 01, 2013 at 3:47 AM.
Reason: Please use [CODE] tags, [CLOSED]