ASP.NET UserControl Does Not Initialize Child Controls

后端 未结 2 1335
小蘑菇
小蘑菇 2021-01-04 05:11

Inside my page, I have the following:


    
        

        
2条回答
  •  天命终不由人
    2021-01-04 05:25

    Well, I've found the problem(s):

    1. User Controls, as opposed to Custom Controls must be registered one-by-one in the web.config file. Do this:

      instead of:

    2. You should never place a WebControl in the same directory as the Control that is using it. This is downright silly. Read about it here.

    Thanks for the help. Now if only I could mark my own answer as the answer...

提交回复
热议问题