I have an ASPX.CS code:
Protected int myprop
I would like to call it on a JS assignment :
<script type='text/javascript'>
...
data.add(['SomeJSProperty', "<%..myprop from code behind%>"]);
I remember doing it with <% %> inline code and it used to view the code behind protected and public members. but it won't work now.
Thanks
<%= %>in your JavaScript, and that happens before the JavaScript code block is run.