zoukankan      html  css  js  c++  java
  • UpdatePanel中的updatemode和childastriggers的设置

    updatemode有两个可选项: always/conditional
    当updatepanel外的控件和updatepanel trigger集合postback属性设定的控件(包括updatepanel内的控件)产生一个postback的时候,不管updatepanel的updatemode属性值为什么样的情况,
    updatepanel 都会被update.
    所以,updatepanel的updatemode属性,是针对updatepanel内所包含的控件(排除trigger集合内postback属性值控件)
    和updatepanel外(被updatepanel trigger集合asyncpsot属性值控件) 有效。
    updatemode为always时,updatepanel内所包含的控件(排除trigger集合内postback属性值控件)和和updatepanel外(被updatepanel trigger集合asyncpsot属性值控件),产生一个提交动作的
    时候,updatepanel就会被更新。
    updatemode为conditional时, childrenastriggers为true(默认值)时,updatepanel内所包含的控件(排除trigger集合内postback属性值控件)和和updatepanel外(被updatepanel trigger集合asyncpsot属性值控件),产生一个提交动作的
    时候,updatepanel就会被更新。
    updatemode为conditional时, childrenastriggers为false时,updatepanel内所包含的控件(排除trigger集合内postback属性值控件),产生一个提交动作的
    时候,updatepanel就不会被更新。
    updatemode为conditional时, childrenastriggers为false时,updatepanel外(被updatepanel trigger集合asyncpsot属性值控件),产生一个提交动作的
    时候,updatepanel就会被更新。
    childrenastriggers时针对updatepanel内所包含的控件(排除trigger集合内postback属性值控件)有效。

    本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/ivan_ren/archive/2008/12/01/3419659.aspx

  • 相关阅读:
    9个开源支付项目,用来学习如何实现支付功能
    documentdb
    Azure Redis
    Azure Diagnostics
    Content Delivery Network (CDN)
    MVVM design pattern
    Azure Cloud Application Design and Implementation Guidance performance-optimization
    Azure Nosql
    设计原则与模式
    C# Yield
  • 原文地址:https://www.cnblogs.com/twilight/p/1538048.html
Copyright © 2011-2022 走看看