Beispiel #1
0
        ///<summary>Converts  a ASP.NET fragment to a a designer document fragment,
        /// and adds the controls and directives etc to the host.</summary>
        public string DeserializeAndAdd(string aspFragment)
        {
            string document;

            Control[] controls;

            aspParser.ParseDocument(aspFragment, out controls, out document);

            foreach (Control c in controls)
            {
                OnInitMethodInfo.Invoke(c, new object[] { EventArgs.Empty });
            }

            return(document);
        }
Beispiel #2
0
 public static void InitialiseControl(Control control)
 {
     OnInitMethodInfo.Invoke(control, new object[] { EventArgs.Empty });
 }