asp:Literal control null in user control

前端 未结 7 1991
南旧
南旧 2021-01-13 10:51

I\'ve a user control which contains asp:Literal.

7条回答
  •  独厮守ぢ
    2021-01-13 11:05

    If MenuContainer is null, it probably has something to do with the time line of the page life cycle. You're calling that function before MenuContainer is linked up. Can you try calling Setup in the Page_Load function?

提交回复
热议问题