/// <summary> /// Raises the <see cref="E:System.Web.UI.Control.Init" /> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs" /> object that contains the event data.</param> protected override void OnInit(EventArgs e) { base.OnInit(e); this.AttributesUpdated += MarketingCampaignAdsXslt_AttributesUpdated; // add css file to page if (GetAttributeValue("CSSFile").Trim() != string.Empty) { CurrentPage.AddCSSLink(Page, ResolveUrl("~/CSS/jquery.tagsinput.css")); } TransformXml(); }
protected override void OnInit(EventArgs e) { this.EnableViewState = false; base.OnInit(e); this.AttributesUpdated += PageXslt_AttributesUpdated; //this.AddAttributeUpdateTrigger( upContent ); //upContent.ContentTemplateContainer.Controls.Add( ) // add css file to page if (GetAttributeValue("CSSFile").Trim() != string.Empty) { CurrentPage.AddCSSLink(Page, ResolveUrl("~/CSS/jquery.tagsinput.css")); } TransformXml(); }
protected override void OnInit(EventArgs e) { this.EnableViewState = false; base.OnInit(e); this.AttributesUpdated += PageXslt_AttributesUpdated; // add css file to page if (GetAttributeValue("CSSFile").Trim() != string.Empty) { CurrentPage.AddCSSLink(Page, ResolveUrl("~/CSS/jquery.tagsinput.css")); //todo why is this hardcoding? JME } // add css file to page if (GetAttributeValue("CSSFile").Trim() != string.Empty) { CurrentPage.AddCSSLink(Page, ResolveUrl("~/CSS/jquery.tagsinput.css")); } TransformXml(); }
/// <summary> /// Initialize stuff required for syntax highlighting. /// </summary> private void InitSyntaxHighlighting() { CurrentPage.AddCSSLink(Page, ResolveUrl("~/Blocks/Examples/prettify.css")); CurrentPage.AddScriptLink(Page, "//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.js"); }