How can I access the content of hidden field, where the hiddenfiled’s visibility set to Visible=false in the server side using C#. I am not in a situation to use CSS’s display:none instead of Visible=false.
How can I access the content of hidden field, where the hiddenfiled’s visibility set
Share
If
Visibleisfalse, then the control did not go down to the client, so you cannot directly access it from javascript: it simply isn’t there.Equally, since it is a
HiddenField(i.e.<input type="hidden"...>), there is no need to setdisplay:none– it will never be visible, even ifVisibleistrue(although, it will be in the source).So: either set
Visibletotrue, or come back to the server to get that value.