internal override string GetClientScriptEventReference() { if (AllowCallback) { ICallbackContainer ccner = Container as ICallbackContainer; if (ccner != null) { return(ccner.GetCallbackScript(this, CommandName + "$" + CommandArgument)); } } return(base.GetClientScriptEventReference()); }
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); }
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; } } } }