protected override void OnLoad(EventArgs e) { if (!string.IsNullOrEmpty(Path)) { UITools.AddScript(Path, this); } else if (!string.IsNullOrEmpty(TemplateCategory)) { UITools.AddTemplateScript(TemplateCategory, this); } base.OnLoad(e); }