C
Christer
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
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