Groups | Blog | Home
all groups > asp.net building controls > january 2004 >

asp.net building controls : .js file for custom controls


Erik Cruz
1/20/2004 8:36:20 PM
I have some javascript functions shared among several controls I wrote. I
want to encapsulate all these functions inside a .js file, creating a
library like the one used by the asp.net intrinsic validator controls. My
doubt is how to add a reference to this .js file when one of my controls is
placed on a web form. Can this be done automatically?

TIA,
Erik Cruz

Alessandro Zifiglio
1/21/2004 10:01:00 AM
hi Erik, the article below goes into all the details.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconclient-sidefunctionalityinservercontrol.asp

[quoted text, click to view]

AddThis Social Bookmark Button