将子标签解释为控件的属性

 

MSDN解释

ParseChildrenAttribute 类允许您以 ParseChildrenAttribute 元数据属性标记服务器控件来为自定义服务器控件指定分析逻辑。

以元数据属性 (Attribute) ParseChildren(true) 标记服务器控件将指示分析器把包含在服务器控件标记内的元素解释为属性 (Property)。在这种情况下,ChildrenAsProperties 属性为 true

以元数据属性 (Attribute) ParseChildren(true,"<Default Property>") 标记服务器控件将把 DefaultProperty 属性 (Property) 设置为传递到该属性 (Attribute) 的属性 (Property) 名称。

 

相关文章:

  • 2022-02-07
  • 2021-08-29
  • 2022-12-23
  • 2022-03-06
  • 2021-11-13
  • 2022-02-14
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-01-17
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-12-17
  • 2022-01-02
相关资源
相似解决方案