"extract" info from ValidationSummary
Is it possible to "extract" the error messages from the
ValidationSummary in a WebForm. I'd like to use these
If so, is there a [C#] code example of this?
Re: "extract" info from ValidationSummary
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
var Page_Validators = new Array(document.all["RequiredFieldValidator1"]);
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.
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"mg" <email@example.com> wrote in message
> 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?
|All times are GMT. The time now is 09:17 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.