I want to use an ASPX page as an external Javascript file because I need a Javascript array containing database data and I want it external because this is an accessible application. So I'm including it like this:
So I'm compiling a Javascript string in my Page_Load event, but my problem is that .NET automatically writes some default HTML into the output. Is there any way to prevent this happening? I esentially want to output a dynamic text file with no HTML tags...
Code:
<script src="../scripts/report_array.aspx" type="text/javascript"></script>
So I'm compiling a Javascript string in my Page_Load event, but my problem is that .NET automatically writes some default HTML into the output. Is there any way to prevent this happening? I esentially want to output a dynamic text file with no HTML tags...