Hi @peter liles ,
Where are you currently having problems?
If you want to use javascript to get the value of the backend, you can try the following method.
1.Create a property in your code behind
protected string MyProperty { get { return "your value"; } }
then in javascript
var myValue = "<%= MyProperty %>";
2.You can use an ASP.Net HiddenField. You just set its value on the server and retrieve it via javascript when you need it.
Serverside
hdf_Test.Value = "yourValue";
HTML
<asp:HiddenField runat="server" ID="hdf_Test" />
Javascript
document.getElementById('hdf_Test').value
3.Retrieve the value with an AJAX request.
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.