Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: substitute for include files


Message #1 by "sundar srinivasan" <ssrinivasan3@n...> on Tue, 13 Aug 2002 14:00:37
> At 02:00 PM 8/13/2002 +0000, sundar srinivasan wrote:
>How do I 'include' javascript files in .NET? I have read
>about 'Registering' scripts in the SDK..but this is not conducive for
>large amounts of javascript. Can I not put all my javascript in a user
>control (or whatever) and tell IIS to send it to the client?

You can put this in the .aspx page:
<script language="javascript" src="popup.js"></script>

Also check the RegisterClientScriptBlock method.

HTH,
Philo

Thanks Philo.

Another question..is there a way to execute client-side onLoad() in 
addition to the server-side 'Page_Load()' so I can do some tool-bar 
loading etc on a frame?

  Return to Index