title: How to get C# code behind variable value in javascript variable?
body: <p>How to get c# code behind variable value in javascript?
  I have declared a variable in page load.
  I want that variable value in javascript.</p>
  <p><strong>Javascript</strong></p>
  <p><a href="https://i.stack.imgur.com/wLFml.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wLFml.png" alt="enter image description here" /></a></p>
  <p><strong>Code C#</strong></p>
  <p><a href="https://i.stack.imgur.com/mZBIR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mZBIR.png" alt="enter image description here" /></a></p>