Пример #1
0
 public static void PrepareForInject(ControlDocumentFragment f)
 {
     for (int i = 0; i < f.scriptReferences.Length; i++)
     {
         GlobalServices.ScriptManager.EnsureScriptIncluded(f.scriptReferences[i]);
     }
     GlobalServices.Initialize(f.scriptManagerConfig);
 }
		public static IControl Inject(ControlDocumentFragment f, string newId, IContainer container, Element parent) {
			PrepareForInject(f);
			jQuery.FromElement(parent).Html(f.html);

			IControl control = (IControl)container.CreateObjectByTypeNameWithConstructorArg(f.controlType, f.configObject);
			control.Id = newId;
			
			return control;
		}
Пример #3
0
        public static IControl Inject(ControlDocumentFragment f, string newId, IContainer container, Element parent)
        {
            PrepareForInject(f);
            jQuery.FromElement(parent).Html(f.html);

            IControl control = (IControl)container.CreateObjectByTypeNameWithConstructorArg(f.controlType, f.configObject);

            control.Id = newId;

            return(control);
        }
		public static void PrepareForInject(ControlDocumentFragment f) {
			for (int i = 0; i < f.scriptReferences.Length; i++)
				GlobalServices.ScriptManager.EnsureScriptIncluded(f.scriptReferences[i]);
            GlobalServices.Initialize(f.scriptManagerConfig);
		}