Controls not initializing in UserControls Asp.NET

183 views Asked by At

I am new to asp.net and I have user control and i am creating its instance. But for some reason all controls are null.

public static void LoadRulesLogic()
    {
        WebUserControls control = new WebUserControls();
        control.LoadRules(); //Controls null here
    }

How do i initialize all controls before calling LoadRules method?

0

There are 0 answers