PDA

View Full Version : Java Script Placement


royspiegel
03-02-2004, 08:41 AM
We are entering a java script with

response.write("Java Lines")

It is not working because it is not in the header and/or body.

How can I put this code in the vb code of the asp.net pages and place the script in the header and/or body?

Thanks,

Roy

steurm
03-02-2004, 11:56 AM
This could be done by using a Literal.
[quote]
<asp:Literalid="Jscript"runat="server"/>

//codebehind:
Jscript.Text="functionDummy(){"
Jscript.Text+="//javascriptlines"
Jscript.Text+=""
Jscript.Text+="}"
</CODE>

There will be other possibilities as well.
success !

--
Steurm
www.steurm.net/steurm