Ejemplo n.º 1
0
 /// <summary>
 /// Obtains a reference to a clinet-side javascript function that causes, when
 /// invoked, the client to callback to the server.
 /// </summary>
 public static string GetCallbackEventReference(ICallBackControl control, bool causesValidation, string validationGroup, string imageDuringCallback)
 {
     return GetCallbackEventReference(control, string.Empty, causesValidation, validationGroup, imageDuringCallback);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Obtains a reference to a clinet-side javascript function that causes, when
 /// invoked, the client to callback to the server.
 /// </summary>
 public static string GetCallbackEventReference(ICallBackControl control, string argument, bool causesValidation, string validationGroup, string imageDuringCallback)
 {
     return string.Format(
         "javascript:Anthem_FireCallBackEvent(this,event,'{0}','{1}',{2},'{3}','{4}','{5}',{6},{7},{8},{9},true,true);",
         ((Control)control).UniqueID,
         argument,
         causesValidation ? "true" : "false",
         validationGroup,
         imageDuringCallback,
         control.TextDuringCallBack,
         control.EnabledDuringCallBack ? "true" : "false",
         (control.PreCallBackFunction == null || control.PreCallBackFunction.Length == 0) ? "null" : control.PreCallBackFunction,
         (control.PostCallBackFunction == null || control.PostCallBackFunction.Length == 0) ? "null" : control.PostCallBackFunction,
         (control.CallBackCancelledFunction == null || control.CallBackCancelledFunction.Length == 0) ? "null" : control.CallBackCancelledFunction
     );
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Obtains a reference to a clinet-side javascript function that causes, when
 /// invoked, the client to callback to the server.
 /// </summary>
 public static string GetCallbackEventReference(ICallBackControl control, string argument, bool causesValidation, string validationGroup)
 {
     return GetCallbackEventReference(control, argument, causesValidation, validationGroup, string.Empty);
 }