开发者

Problem in getting refernce to ajax extender control

开发者 https://www.devze.com 2022-12-23 05:14 出处:网络
I am having problem i开发者_开发知识库n getting reference of Ajax control extender using $find() or $get or document.getElelmentById() functions in java script

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 %>')

0

精彩评论

暂无评论...
验证码 换一张
取 消