Disable all autogenerated Javascript

L

lbolognini

Hi all,

I'd like everything to be done server-side and don't like to see any
Javascript on my page source. Would it be possible also to prevent the
validator controls render a blank space   when no error message is
displayed?

I'm using WebControls, should I just switch to HTMLControls and maybe
throw all the user submit value in cache and retrieve the values from
there?

Thanks,
Lorenzo
 
P

Peter Blum

Set the EnableClientScript property to false on each validator.

When the validators have not been validated or are valid, they are entirely
hidden. You cannot have them substitute a  . When the error message is
hidden, either the control is not taking up any space on the page or is
using the same space as the error message. This is controlled by the Display
property (Static vs Dynamic).

FYI: I built a replacement to Microsoft's validator controls, "Professional
Validation And More" (http://www.peterblum.com/vam/home.aspx). Each of my 25
validators has a property called NoErrorFormatter where you can define
" " as what appears when the error message is hidden. This is just one
of a huge list of enhancements to validation in Professional Validation And
More.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 
L

lbolognini

Peter said:
Set the EnableClientScript property to false on each validator.

When the validators have not been validated or are valid, they are entirely
hidden. You cannot have them substitute a  . When the error message is
hidden, either the control is not taking up any space on the page or is
using the same space as the error message. This is controlled by the Display
property (Static vs Dynamic).

Hi Peter,

thanks very much for the explanation, I was actually trying to
understand all of the subleties hidden in these control properties such
as Display
FYI: I built a replacement to Microsoft's validator controls, "Professional
Validation And More" (http://www.peterblum.com/vam/home.aspx). Each of my 25
validators has a property called NoErrorFormatter where you can define
" " as what appears when the error message is hidden. This is just one
of a huge list of enhancements to validation in Professional Validation And
More.

I think someday I'll end up too with some controls which expose just
the simple API I need without all this unneccessary stuff added but
which nontheless you need messing around with.

Thanks,
Lorenzo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top