Link to home
Start Free TrialLog in
Avatar of morpheous_
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
Avatar of Thogek
Thogek
Flag of United States of America image

Is there any reason not to just put it where you want it in the ASPX file (i.e., in the designer/HTML view)?
Avatar of morpheous_
morpheous_

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
Avatar of Thogek
Thogek
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial