barski Posted September 26, 2003 Posted September 26, 2003 I know you can us button1.attributes.add("OnClick", "thisfuntion()") to call js functions that are on the same page. I have several functions that are used over and over again. How do I call an external file. Quote
Moderators Robby Posted September 27, 2003 Moderators Posted September 27, 2003 Place this in the <head> of your aspx file... <script src='someDirectory/SomeFile.js'></script> Quote Visit...Bassic Software
barski Posted September 27, 2003 Author Posted September 27, 2003 But how do I attach that file to an event of a server control? Quote
*Gurus* Derek Stone Posted September 27, 2003 *Gurus* Posted September 27, 2003 You'll need to use [msdn=System.Web.UI.Page]Page.RegisterClientScriptBlock()[/msdn] or [msdn=System.Web.UI.Page]Page.RegisterStartupScript()[/msdn]. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.