Example #1
0
        protected override void RenderContents(HtmlTextWriter writer)
        {
            TranslationUtil.ApplyTranslation(this);
            PermissionUtil.ApplyPermission(this);

            base.RenderContents(writer);
        }
Example #2
0
        protected override void OnPreRender(EventArgs e)
        {
            TranslationUtil.ApplyTranslation(this);
            PermissionUtil.ApplyPermission(this);

            base.OnPreRender(e);
        }
Example #3
0
        protected override void OnPreRender(EventArgs e)
        {
            TranslationUtil.ApplyTranslation(this);
            PermissionUtil.ApplyPermission(this);

            if (!Enabled)
            {
                OnClientClick = String.Empty;
            }

            base.OnPreRender(e);
        }
Example #4
0
        public DefaultTranslatable(StateBag viewState, String trnKey, String text, bool translate)
        {
            ViewState = viewState;
            TrnKey    = trnKey;
            Text      = text;

            Translated = translate;

            if (translate)
            {
                TranslationUtil.ApplyTranslation(this);
            }
        }
Example #5
0
        protected override void RenderContents(HtmlTextWriter writer)
        {
            TranslationUtil.ApplyTranslation(this);
            PermissionUtil.ApplyPermission(this);

            if (!Enabled)
            {
                OnClientClick = String.Empty;
            }

            if (!String.IsNullOrWhiteSpace(NavigateUrl))
            {
                hyperLink.RenderControl(writer);
            }
            else
            {
                base.RenderContents(writer);
            }
        }