BoulderBum
Programmer
I have an HttpModule that I want to have run a script with the page gets delivered to the client, but for some reason it doesn't work.
Basically I have:
Now, if I have the above as static text in my page, the script runs fine, but when the HttpModule dynamically writes it, nothing happens. The script doesn't run for some reason (though viewing the source makes it look identical)!
Does anyone know what I can do to acheive the effect I want across all pages?
Basically I have:
Code:
<html>
<!-- blah blah blah -->
</html>
<!-- HttpModule inserted this on EndRequest -->
<script language='javascript'>
alert('test');
</script>
Now, if I have the above as static text in my page, the script runs fine, but when the HttpModule dynamically writes it, nothing happens. The script doesn't run for some reason (though viewing the source makes it look identical)!
Does anyone know what I can do to acheive the effect I want across all pages?