attaching javascript to a dynamically loaded control object

  • Thread starter Thread starter Darrel
  • Start date Start date
D

Darrel

I have a usercontrol that is dynamically loaded. Within this usercontrol, I
want to add some javascript, and then attach it to one of the web controls
on this page.

Normally, I'd just use something like this:

RequiredFieldValidator_description.Attributes.Add("onKeyUp",
"textCounter(this,299);")

But this does not work for some reason. I assume it's because of the dynamic
loading of the control. Is there a way around this?

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top