1
Answer

How to Access of hiddenfield value in external .js file

Photo of Anand Navale

Anand Navale

5y
1.1k
1
Hi,
 
I have a asp hidden field on my web form. I set the hidden field value from the code behind. I want to access this value from a javascript function in external .js file.
 
This is the asp hidden field
 
 
I set the value in code behind
 
HiddenField1.Value = "xyz";
 
How can I access HiddenField1.value in external .js file.
 
Give me example...
 
Thanks
Anand

Answers (1)