Esempio n. 1
0
 internal override string GetClientScriptEventReference()
 {
     if (AllowCallback)
     {
         ICallbackContainer ccner = Container as ICallbackContainer;
         if (ccner != null)
         {
             return(ccner.GetCallbackScript(this, CommandName + "$" + CommandArgument));
         }
     }
     return(base.GetClientScriptEventReference());
 }
Esempio n. 2
0
        protected internal override void Render(HtmlTextWriter writer)
        {
            EnsureForeColor();
            if (AllowCallback)
            {
                ICallbackContainer ccner = Container as ICallbackContainer;
                if (ccner != null)
                {
                    OnClientClick = ClientScriptManager.EnsureEndsWithSemicolon(OnClientClick) + ccner.GetCallbackScript(this, CommandName + "$" + CommandArgument);
                }
            }

            base.Render(writer);
        }
Esempio n. 3
0
 private void SetCallbackProperties()
 {
     if (_enableCallback)
     {
         ICallbackContainer container = _container as ICallbackContainer;
         if (container != null)
         {
             string callbackScript = container.GetCallbackScript(this, _callbackArgument);
             if (!string.IsNullOrEmpty(callbackScript))
             {
                 OnClientClick = callbackScript;
             }
         }
     }
 }