Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have a user control with a Jquery and Json code
and I want to use two or tree of that user control in one page ( 3 instance of user control in one page)

the Jquery code don't work in this state


but not worked....!
what am i doing?
Posted
Updated 15-Jan-12 18:58pm
v7

You can still use jQuery with multiple instances. While calling the jQuery methods use controld id (selector) with the jquery functions. Make sure the controls instance has unique id is set.
 
Share this answer
 
Comments
Wonde Tadesse 11-Jan-12 17:15pm    
5+
faezeh66 11-Jan-12 23:51pm    
i do it but not work with multiple instance...
combine name of your variable or functions with <%=control.clientID%> to generate non duplicate name of functions in a one page
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900