protected override void CreateChildControls() { string text = null; string helpId = EACHelpId.LearnMoreCAL.ToString(); if (RbacPrincipal.Current.IsInRole("Enterprise")) { text = this.EnterpriseText; } else if (RbacPrincipal.Current.IsInRole("LiveID")) { text = this.DatacenterText; } if (text == null) { this.Visible = false; base.CreateChildControls(); return; } TableRow tableRow = new TableRow(); tableRow.VerticalAlign = VerticalAlign.Top; this.Controls.Add(tableRow); TableCell tableCell = new TableCell(); tableRow.Controls.Add(tableCell); CommonSprite commonSprite = new CommonSprite(); commonSprite.ImageId = CommonSprite.SpriteId.Information; tableCell.Controls.Add(commonSprite); TableCell tableCell2 = new TableCell(); tableRow.Controls.Add(tableCell2); HelpLink helpLink = new HelpLink(); helpLink.Text = text; helpLink.TextIsFormatString = true; helpLink.HelpId = helpId; tableCell2.Controls.Add(helpLink); base.CreateChildControls(); }
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); base.NavigateUrl = HelpLink.GetHrefNoEncoding(this.HelpId); base.Attributes.Add("onclick", "PopupWindowManager.showHelpClient(this.href); return false;"); }
internal static string GetHrefNoEncoding(string helpId) { return(HelpLink.HelpUrlBuilder(helpId)); }
internal static string GetHref(string helpId) { return(Encoder.HtmlEncode(HelpLink.HelpUrlBuilder(helpId))); }
private string GetHrefNoEncoding() { return(HelpLink.GetHrefNoEncoding(this.HelpId)); }
private string GetHref() { return(HelpLink.GetHref(this.HelpId)); }