This seems to be a weird scenario but the asp.net's RegisterStartupScript does not throw any scripts on the page for firefox.
This works fine for chrome.
The code is as below:
ScriptManager.RegisterStartupScript(this, GetType(), "testfunc", "<script type='text/javascript'>function testfunc(){ alert('hi123'); } testfunc(); </script>", false);
When I do "View page source" for chrome the code is seen but for firefox its nothing. Also alert gets fired for chrome but, obviously, for firefox there is no alert.
I have also tried with the last parameter in the above mentioned code i.e. addScriptTags as true and removing the script tag from inside but to no avail.
The following is the screenshot for your reference. The firefox version is 39.0 and that of chrome is 44.0.2, if this information matters.
Please let me know if any more information is required from my end.
Please help! Thanks in advance!
