Anand Navale

Anand Navale

  • 1.9k
  • 149
  • 4.9k

How to Access of hiddenfield value in external .js file

Oct 16 2019 2:22 AM
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)