예제 #1
0
        public void ClientScriptManager_ValidateEventException_2()
        {
            Page p = new Page();
            ClientScriptManager cs = p.ClientScript;

            cs.ValidateEvent("Exception", "args");
        }
 /// <summary>
 /// Validates a client event that was registered for event validation using the <see cref="M:System.Web.UI.ClientScriptManager.RegisterForEventValidation(System.String)"/> method.
 /// </summary>
 /// <param name="uniqueId">A unique ID representing the client control generating the event.
 /// </param>
 public void ValidateEvent(string uniqueId)
 {
     _clientScriptManager.ValidateEvent(uniqueId);
 }