예제 #1
0
        protected override void OnPreRender(EventArgs e)
        {
            this.AddStyleSheet(this.MasterPageBaseCssUrl);
            this.AddStyleSheet(this.MasterPageTemplateCssUrl);

            this.AddJavaScript(this.ResolveUrl("~/Static/Scripts/2.0.2/jQuery/jquery-1.2.min.js"));

            this.AddJavaScript(this.ResolveUrl("~/Scripts/Constants.aspx"));
            this.AddJavaScript(this.ResolveUrl("~/Static/Scripts/2.0.2/json.js"));
            this.AddJavaScript(this.ResolveUrl("~/services/ajax/ajaxservices.ashx?proxy"), false);
            this.AddJavaScript(this.ResolveUrl("~/Static/Scripts/2.0.2/Common.js"));
            this.AddJavaScript(this.ResolveUrl("~/Static/Scripts/2.0.2/Tagging.js"));

            if (this.IsHostModerator)
                this.AddJavaScript(this.ResolveUrl("~/Static/Scripts/2.0.2/Moderator/HostModerator.js"));

            if (!String.IsNullOrEmpty(this.RssFeedUrl)) {
                if(this.RssFeedUrl.StartsWith("http:"))
                    this.AddRssUrl(this.RssFeedUrl);
                else
                    this.AddRssUrl(this.HostProfile.RootUrl + this.RssFeedUrl);
            }

            if (this.KickUserProfile.IsDebugger) {
                DebugInformation debugInfo = new DebugInformation();
                this.Controls.Add(debugInfo);
            }

            AddOpenSearchLink();

            base.OnPreRender(e);
        }