コード例 #1
0
 protected void ctxValBillingCycles_EvaluatingContext(object sender, ManualValidationEventArgs e)
 {
     // get plan cycles
     HostingPlanCycle[] cycles = ctlPlanCycles.GetHostingPlanCycles();
     //
     if (cycles != null && cycles.Length > 0)
     {
         e.ContextIsValid = true;
         return;
     }
     //
     e.ContextIsValid = false;
 }
コード例 #2
0
		protected void ctxValBillingCycles_EvaluatingContext(object sender, ManualValidationEventArgs e)
		{
			// get tld cycles
			DomainNameCycle[] cycles = ctlBillingCycles.GetDomainNameCycles();
			//
			if (cycles != null && cycles.Length > 0)
			{
				e.ContextIsValid = true;
				return;
			}
			//
			e.ContextIsValid = false;
		}
コード例 #3
0
		protected override bool EvaluateIsValid()
		{
			//
			ManualValidationEventArgs args = new ManualValidationEventArgs();
			//
			if (EvaluatingContext != null)
			{
				// trying evaluate manual context
				EvaluatingContext(this, args);
				//
				return args.ContextIsValid;
			}

			return true;
		}
コード例 #4
0
        protected override bool EvaluateIsValid()
        {
            //
            ManualValidationEventArgs args = new ManualValidationEventArgs();

            //
            if (EvaluatingContext != null)
            {
                // trying evaluate manual context
                EvaluatingContext(this, args);
                //
                return(args.ContextIsValid);
            }

            return(true);
        }