예제 #1
0
 public InvokerNotSetException(JsonCallback callback)
     : base(string.Format(
                @"No invoker was set to use the callback [jsonid: {0}, asp id: {1}]. \r\n-Make sure that " +
                "JsonControls nested in BoxControls have unique JsonIds.  The BoxServer will attempt to handle this in most cases" +
                " but JsonCallbacks are sensitive to this and require user specified, globally unique identifiers.\r\n" +
                "-To add a script to the page use an instance of the JsonFunction control or a standard script tag.", callback.JsonId, callback.ID))
 {
 }
 public InvokerNotSetException(JsonCallback callback)
     : base(string.Format(
         @"No invoker was set to use the callback [jsonid: {0}, asp id: {1}]. \r\n-Make sure that " +
     "JsonControls nested in BoxControls have unique JsonIds.  The BoxServer will attempt to handle this in most cases" +
     " but JsonCallbacks are sensitive to this and require user specified, globally unique identifiers.\r\n" +
     "-To add a script to the page use an instance of the JsonFunction control or a standard script tag.", callback.JsonId, callback.ID))
 {
 }
예제 #3
0
        internal void SetCallback(bool searchControls)
        {
            if (Callback == null)
            {
                JsonCallback callback = null;
                if (ParentJavascriptPage != null)
                {
                    callback = ParentJavascriptPage.FindCallback(CallbackJsonId, searchControls);
                }


                Callback = callback;
            }

            if (Callback != null)
            {
                Callback.Invoker = this;
            }
        }