Hi,
why validation summary? Do you need to reuse the messages at client-side? At
server-side you can loop through Page.Validators collection and at
client-side through the validator references stored in Page_Validators array
<script language="javascript">
<!--
var Page_Validators = new Array(document.all["RequiredFieldValidator1"]);
// -->
</script>
You just need to dig the error messages by checking the isvalid property ig
yo8 want only the erroneus ones.
Certainly you could also just try to get the innerText of the client-side
element the ValidationSummary renders.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"mg" <> wrote in message
news:084d01c3c33c$0c500250$...
> Is it possible to "extract" the error messages from the
> ValidationSummary in a WebForm. I'd like to use these
> strings elsewhere.
>
> If so, is there a [C#] code example of this?
|