Hello,
I've tried various methods but none seem to work for me. Any help would be greatly appreciated.
I am trying to dynamically set the "onchange" attribute for dropdownlist to call another fucntion. Here's what I have:
I've seen other people use the same code and it seems to be working for them, however for me it's doing nothing.
"filter" is a dynamically created dropdownlist which is being created when a postback function is called, I need to set the "onchange" attribute and then add the control to a repeater item's collection.
Please Help!
Thanks,
Shivam.
I've tried various methods but none seem to work for me. Any help would be greatly appreciated.
I am trying to dynamically set the "onchange" attribute for dropdownlist to call another fucntion. Here's what I have:
Code:
filter.Attributes.Add("OnChange", "getoptions");
I've seen other people use the same code and it seems to be working for them, however for me it's doing nothing.
"filter" is a dynamically created dropdownlist which is being created when a postback function is called, I need to set the "onchange" attribute and then add the control to a repeater item's collection.
Please Help!
Thanks,
Shivam.