AjaxControlToolkit.HtmlEditor.PreviewPanel.OnInit C# (CSharp) Method

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            Attributes.Add("name", ClientID);
            Attributes.Add("marginheight", "0");
            Attributes.Add("marginwidth", "0");
            Attributes.Add("frameborder", "0");
            if(EditPanel.IE(Page))
                Attributes.Add("src", "javascript:false;");
            Style.Add(HtmlTextWriterStyle.BorderWidth, Unit.Pixel(0).ToString());
        }