开发者

User control's contents not created or even parsed

I have an ASP.NET 4.0 application with some simple user controls. The user controls work fine on the design surface (VS.NET 2010), but when they're loaded during application execution, nothing shows up.

Furthermore, the various child controls of the user controls are null when referenced inside the code behind for the user control.

The code behind for the 开发者_高级运维user control executes as expected, but any reference to child controls are null.

It's like ASP.NET is never parsing the .ascx to create the instances of the child controls.

Ideas?


Turns out this was just me being extremely stupid.

My web.config was missing the propery control namespace references.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜