예제 #1
0
파일: Manager.cs 프로젝트: katshann/ogen
 /// <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);
 }
예제 #2
0
파일: Manager.cs 프로젝트: katshann/ogen
 /// <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
     );
 }
예제 #3
0
파일: Manager.cs 프로젝트: katshann/ogen
 /// <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);
 }