public Control GetControl(PageBase hostPage) { var oEmbedControl = new oEmbedControl(); var options = new oEmbedOptions { Url = url.ToString(), MaxWidth = Convert.ToInt32(width.Value), MaxHeight = Convert.ToInt32(height.Value) }; oEmbedControl.Options = options; return oEmbedControl; }
public override void CreateDefaultControls() { var oEmbedControl = new oEmbedControl(); var options = new oEmbedOptions { Url = OptionsData.Url, MaxWidth = Convert.ToInt32(OptionsData.MaxWidth), MaxHeight = Convert.ToInt32(OptionsData.MaxHeight) }; oEmbedControl.Options = options; Controls.Add(oEmbedControl); }
public Control GetControl(TemplateControl hostPage) { var oEmbedControl = new oEmbedControl(); var options = new oEmbedOptions { Url = url.ToString(), MaxWidth = Convert.ToInt32(width.Value), MaxHeight = Convert.ToInt32(height.Value) }; oEmbedControl.Options = options; return(oEmbedControl); }