K
kpg
Hi all,
I am using the ajax.net slider control an I added a client side value
changed handler like this:
function pageLoad() {
$find('My_SliderExtender').add_valueChanged(OnValueChange);
}
Works great.
Then I moved my slider into a content placeholder and now the $find
return null - makes sense, becuase the client id has changed.
So I tried multiple techniques to get it to work - all failed.
I tried passing the parent (the content palceholder) to the $find
$find('My_SliderExtender','Content1')
$find('My_SliderExtender',$get('Content1'))
I tried using the client id:
$find('<%= My_SliderExtender.ClientID%>')
I treid using the name observed in the generated html:
$find('ctl001$Content1$My_SliderExtender')
How do I find a control behaviour that is in a content placeholder?
Thanks,
kpg
I am using the ajax.net slider control an I added a client side value
changed handler like this:
function pageLoad() {
$find('My_SliderExtender').add_valueChanged(OnValueChange);
}
Works great.
Then I moved my slider into a content placeholder and now the $find
return null - makes sense, becuase the client id has changed.
So I tried multiple techniques to get it to work - all failed.
I tried passing the parent (the content palceholder) to the $find
$find('My_SliderExtender','Content1')
$find('My_SliderExtender',$get('Content1'))
I tried using the client id:
$find('<%= My_SliderExtender.ClientID%>')
I treid using the name observed in the generated html:
$find('ctl001$Content1$My_SliderExtender')
How do I find a control behaviour that is in a content placeholder?
Thanks,
kpg