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?