zoukankan      html  css  js  c++  java
  • JS脚本中动态更改ConfirmButtonExtender扩展器的ConfirmText属性值

    AJAX Control Toolkit的发行中提供了相应的所有扩展器的源码,这极大地方便了开发人员根据自己的需要全面深入地使用这些扩展器集合。

            例如,对于ConfirmButtonExtender扩展器来说,如果想动态更改此扩展器控件的ConfirmText属性值,可以通过ConfirmText属性的Get和Set属性方法实现。其中,源码中的定义如下:


     get_ConfirmText : function() {
            /// <value type="String">
            /// The text to show when you want to confirm the click. (Note: HTML entities can be used here (ex: " " for new-line))
            /// </value>
            return this._ConfirmTextValue;
        },
        set_ConfirmText : function(value) {
            if (this._ConfirmTextValue != value) {
                this._ConfirmTextValue = value;
                this.raisePropertyChanged('ConfirmText');
            }
        },


    于是,在客户端脚本中,我们可以通过如下编码实现动态指定ConfirmButtonExtender扩展器控件的属性ConfirmText的值:

    $find("ConfirmExtender's behaviorID").set_ConfirmText("your text");
  • 相关阅读:
    【JavaScript DOM 编程艺术】 笔记
    如何循序渐进有效学习 JavaScript?
    如何正确学习JavaScript
    HTML5学习
    window上杀死node进程
    HTML5:离线存储
    js面向对象的理解
    H5项目常见问题及注意事项
    查找已连接过的wifi密码
    flex的兼容
  • 原文地址:https://www.cnblogs.com/zhangpengshou/p/1766667.html
Copyright © 2011-2022 走看看