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

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

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

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

            base.OnPreRender(e);
        }
示例#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);
            }
        }
示例#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);
            }
        }