morpheous_
asked on
JavaScript block - how to render/place javascript on the right place in the .aspx page?
Hello,
I have a simple javascript script that I want to render on .aspx page but on the right place.
Currently my javascript is located in the Page_Load() event and renders above the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >Â which is wrong.
I would like script to be rendered within e.g. <HEAD> </HEAD> block.
javscript:
<SCRIPT language="JavaScript">
<!--
HideWait();
//-->
</SCRIPT>
Thank you,
-mike
I have a simple javascript script that I want to render on .aspx page but on the right place.
Currently my javascript is located in the Page_Load() event and renders above the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >Â which is wrong.
I would like script to be rendered within e.g. <HEAD> </HEAD> block.
javscript:
<SCRIPT language="JavaScript">
<!--
HideWait();
//-->
</SCRIPT>
Thank you,
-mike
Is there any reason not to just put it where you want it in the ASPX file (i.e., in the designer/HTML view)?
ASKER
Yeah, I because I am performing operations where I measure time it takes to load c# code behind from the the Page_Load is started to the time .aspx content code is rendered.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.