Problem in getting refernce to ajax extender control
I am having problem i开发者_开发知识库n getting reference of Ajax control extender using $find() or $get or document.getElelmentById() functions in java script
Can any one tell me how can to do this?
Thanks in advance :)
If you speak about ASP.NET AjaxControlToolkit extenders, actually they do not render any control in the page, but can be accessed as special members of the control they extend.
For example, if a TextBox
has a CalendarExtender
, it can be accessed from javascript code with:
document.getElementById('myTextBoxClientID').CalendarBehavior
Try this
$get('<%=extenderId.ClientID %>') or document.getElementById('<%=extenderId.ClientID %>')
精彩评论