My control is “not allowed here because it does not extend class 'System.Web.UI.UserControl'”

后端 未结 2 1921
-上瘾入骨i
-上瘾入骨i 2021-01-11 10:24

So I have another noodle-scratcher (for me anyway).

I\'m trying to create my own custom control in a CMS I only have partial source code for (i.e. samples the vendor

相关标签:
2条回答
  • 2021-01-11 10:42

    Try putting your partial class in

    namespace CMS.Web 
    
    0 讨论(0)
  • 2021-01-11 10:58

    I was getting this error when the name of the class that was extending the UserControl class was not the name used in ASP inclusion. I made the change to the class name and redeployed the solution. The problem was fixed.

    0 讨论(0)
提交回复
热议问题