Having rewritten the entire validation framework, including
validationsummary and alert boxes, I have lots of experience here. I'd like
to know specifically what you were trying to do within the alert that
differs from Microsoft's controls? My product, "Professional Validation And
More" may help. (
http://www.peterblum.com/vam/home.aspx) It provides the
ability to describe your alert box with rules to allow text before and
after, plus the format of the error messages can be in list or sentence
style. It has an extensive free Developer's Kit with the ability to extend
the client-side code for validators and validationsummary.
I suspect that to better understand what you are doing, I would have to
better understand what your MessageBox webcontrol does beyond writing the
javascript
: window.alert('message');
and why you want to use it to deliver the contents of the ValidationSummary.
--- Peter Blum
www.PeterBlum.com
Email:
PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Christer" <winterdk@hotmail.com> wrote in message
news:7beadfe3.0402121206.660d27b3@posting.google.c om...[color=blue]
> Hi all!
>
> I recently created a MessageBox webcontrol for asp.net. This can be
> used as is, but I also want to take ude of it in other webcontrols.
> Right now i creating a ValidationSummary control, that makes use of my
> messagebox to show the summary of failing validators.
>
> So far I've been successfull achieving this. However, the serverside
> nature of the MessageBox currently forces all validators (and the
> validationsummary) to have EnableClientScript=false. In short this
> means that all validations are made on the server, which causes
> postbacks.
>
> The validationsummary webcontrol shipped with the .net framework makes
> it possible to have the validationsummary displayed in a javascript
> alert-messagebox. I want to recreate the same clientside display with
> my own messagebox. In short, write the messagebox to the page in a
> hidden state, and show it on demand.
> However, the .net valisationsummary alert is created in the included
> validation-javascript file (WebUIValidation.js) wich also contains all
> the functions for clientside validation so, as I see it, it's quite
> impossible to both have clientsidescript enabled on validationcontrols
> and summary, and still create my own clientside daisplay of the
> failing validator.
>
> Does any of you out there been in similar situations? Any ideas how to
> cut my cake? I'm determined to use the existing clientside
> functionality with regards to validation, by I'd like to make my own
> display function.
>
> Kind regards
> Christer[/color]