How do you handle attaching JavaScript to UserControls in ASP.NET and keep multiple instance isolated?
<p>Lets say you need to attach some JavaScript functionality to an ASP.NET User Control of which there might be multiple instances on any given page.  Because JavaScript has shared global state, what techniques can you use to keep the client state and behavior for each instance of a control separate?</p>
