/// <summary> /// Creates the new controls used by the User-Agent tester. /// </summary> /// <param name="e"></param> protected override void OnInit(EventArgs e) { base.OnInit(e); if (DataSet != null) { _instructions = new Literal(); _textBoxUserAgent = new TextBox(); _buttonTest = new Button(); _userAgentLink = new HyperLink(); _deviceExplorer = new DeviceExplorer(); _textBoxUserAgent.MaxLength = 800; _buttonTest.Click += new EventHandler(ButtonTest_Click); _deviceExplorer.Navigation = false; _deviceExplorer.FooterEnabled = false; _deviceExplorer.LogoEnabled = false; _deviceExplorer.ImagesEnabled = true; _container.Controls.Add(_instructions); _container.Controls.Add(_textBoxUserAgent); _container.Controls.Add(_buttonTest); _container.Controls.Add(_userAgentLink); _container.Controls.Add(_deviceExplorer); _container.DefaultButton = _buttonTest.ID; } }
/// <summary> /// Creates the new controls used by the user agent tester. /// </summary> /// <param name="e"></param> protected override void OnInit(EventArgs e) { base.OnInit(e); if (DataSet != null) { _instructions = new Literal(); _textBoxUserAgent = new TextBox(); _buttonTest = new Button(); _userAgentLink = new HyperLink(); _deviceExplorer = new DeviceExplorer(); _textBoxUserAgent.MaxLength = 800; _buttonTest.Click += new EventHandler(ButtonTest_Click); _deviceExplorer.Navigation = false; _deviceExplorer.FooterEnabled = false; _deviceExplorer.LogoEnabled = false; _deviceExplorer.ImagesEnabled = true; _container.Controls.Add(_instructions); _container.Controls.Add(_textBoxUserAgent); _container.Controls.Add(_buttonTest); _container.Controls.Add(_userAgentLink); _container.Controls.Add(_deviceExplorer); _container.DefaultButton = _buttonTest.ID; } }