Im trying to access a class from code behind in javascript but I am getting the error saying it does'nt exist in this context. This has worked for me before this way.
Here is my code: Code Behind:
public class ReviewData
{
public int NumberOfReviews { get; set; }
public double AvgReviewScore { get; set; }
}
This variable has been populated further down
Here is my javascript:
<script type="text/javascript">
var reviewData = "<%=ReviewData%>"
</script>
ReviewData, that you want to send to the browser?