开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜