AjaxControlToolkit.HtmlEditor.Popups.Popup.OnPreRender C# (CSharp) Метод

OnPreRender() защищенный Метод

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
Результат void
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if(_iframe != null) {
                var temp = (_savedCSS != null) ? _savedCSS : Style.Value;
                if(temp != null)
                    if(temp.Length > 0) _iframe.Style.Value = temp;

                if(Height.ToString().Length > 0)
                    _iframe.Style[HtmlTextWriterStyle.Height] = Height.ToString();

                if(Width.ToString().Length > 0)
                    _iframe.Style[HtmlTextWriterStyle.Width] = Width.ToString();

                _iframe.Attributes.Add("id", _iframe.ClientID);
            }
            Height = Height;
        }