<script type="text/javascript">
/* <![CDATA[ */
var on_id = 1;
if (<%=GetValue() %>) {
on_id = <%=GetValue() %>;
}
</script>
I am encountering two syntax errors: one at the second closed bracket following %>
, and another at the semicolon after %>
. The GetValue()
function is a public method that returns a decimal value, defined in the code behind.
Can someone provide guidance on resolving these issues?