/// <summary> /// 重写事件 /// </summary> /// <param name="sourceControl"></param> /// <param name="eventArgument"></param> protected override void RaisePostBackEvent(System.Web.UI.IPostBackEventHandler sourceControl, string eventArgument) { if (Identity == null) { this.RedirectLoginPage(); } if (IsVerifyResource && Identity != null) { var info = this.GetVerification(Identity.Id); if (info.IsPass) { var name = sourceControl.GetType().GetProperty("ClientID").GetValue(sourceControl, null).ToString().Replace("_", "$"); if (info.Controls.ContainsKey(name) && !info.Controls[name]) { return; } } else { return; } } base.RaisePostBackEvent(sourceControl, eventArgument); }
public virtual void RegisterRequiresRaiseEvent(System.Web.UI.IPostBackEventHandler control) { }