asp:Literal control null in user control

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

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

7条回答
  •  悲哀的现实
    2021-01-13 10:52

    It was very simple. I was adding things in web.config's controls section as was suggested by Rick Sthral in one of his post ( :( for got about the post, you will have to search on his page).

    It was nicely allowing me to add controls without putting @ Register tag but the downside was that child controls on my controls were shown as null! so I simply put @ Register directive in my pages and it worked.

提交回复
热议问题