By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,784 Members | 1,182 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,784 IT Pros & Developers. It's quick & easy.

attaching javascript to a dynamically loaded control object

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Darrel..
try posting ur code and what error/s are u getting..
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.