How to use a custom ValidatorUpdateDisplay function when the controls / validators are loaded on postback in an UpdatePanel the first time?
问题 In ASP.NET when using validation controls (i.e. RequiredFieldValidator ) the client sided framework will execute the JS function Page_ClientValidate . This function will validate all controls on the page (of the given ValidationGroup ) and call the JS function ValidatorUpdateDisplay with a parameter of the DOM element of the span tag of the validator control. ValidatorUpdateDisplay toggles the visibility of the span tag depending on the result of the validation. In my web application I've