Possible Duplicate:
User control javascript
I defined a JavaScript function inside a user control.
If I have multiple instances of the user control on my .aspx page, how do I prevent multiple function definitions in the resulting HTML code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to use the Page.ClientScript manager.
The following code will only register your code once per a page.
You can also make sure that *.js files get added only once