コード例 #1
0
        /// <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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
 /// <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");
 }