Struggling a bit here, feeling like the answer should be obvious but I just can't seem to figure it out. I'm even at a loss for what to search for on Google :S Thank goodness for Stack Overflow!
So, imagine I have this .aspx file:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyPage.aspx.cs" Inherits="MyPage" %>
<script type="text/javascript">
//<!-- I want to inject a JSON string here, which is generated per side-request -->
function doStuffToMyData(){
// .....
}
</script>
Any suggestions on how I can inject a JSON string here? I can create and parse the string without any issues.
Is there a simpler way to achieve this? My goal is to update the appearance of the page based on changes to this data, so using a JSON string seemed like the most straightforward approach.
Thanks ahead of time :)