Public class is inaccessible due to its protection level

后端 未结 3 1279
情歌与酒
情歌与酒 2020-12-29 18:45

I have the following classes:

namespace Bla.Bla 
{
    public abstract class ClassA 
    {
        public virtual void Setup(string thing) 
        {
                


        
3条回答
  •  孤独总比滥情好
    2020-12-29 18:57

    You could go into the designer of the web form and change the "webcontrols" to be "public" instead of "protected" but I'm not sure how safe that is. I prefer to make hidden inputs and have some jQuery set the values into those hidden inputs, then create public properties in the web form's class (code behind), and access the values that way.

提交回复
热议问题