示例#1
0
        /// <summary>
        /// Renders the DOM to the bound TextWriter.
        /// </summary>

        public void Render()
        {
            if (_AsyncPostbackData != null)
            {
                foreach (var data in _AsyncPostbackData)
                {
                    RealWriter.Write(data.Render());
                }
            }
            else
            {
                string content = Dom.Render();
                RealWriter.Write(content);
            }
        }
 public void Render()
 {
     if (_AsyncPostbackData != null)
     {
         foreach (var data in _AsyncPostbackData)
         {
             RealWriter.Write(data.Render());
         }
     }
     else
     {
         string content = Dom.Render();
         if (_UserOutput != null)
         {
             content += "<script type=\"text/javascript\">" + System.Environment.NewLine + UserOutput.ToString() + "</script>";
         }
         RealWriter.Write(content);
     }
 }