Nested User Controls - how to best get a reference to an ancestor control

后端 未结 5 1947
没有蜡笔的小新
没有蜡笔的小新 2021-01-23 11:31

I realize that a whole lot of code cannot fit here, but I am asking for general direction or pointer.

I have .NET user controls nested six deep for an interactive gadget

5条回答
  •  伪装坚强ぢ
    2021-01-23 11:53

    Howdy, you could use the WebControl selector which is actually an independant project (license == LGPL) but still part of the main Ra-Ajax download...

    Check out both the code and sample use here...

    Then you could just search from the Page object and it'll recursively look for a control matching your (whatever) criteria in the delegate...

提交回复
热议问题