Prevent asp.net generating someValidator.display = "Dynamic"; -


my asp.net page dynamically displays 207 questions (i can't control this). each question have 10 validators. when asp renders page creates following 3 lines each validator:

var qsnquestionset_adult_qcquestion_1_vldmaxanswersvalidator = document.all ? document.all["qsnquestionset_adult_qcquestion_1_vldmaxanswersvalidator"] : document.getelementbyid("qsnquestionset_adult_qcquestion_1_vldmaxanswersvalidator"); qsnquestionset_adult_qcquestion_1_vldmaxanswersvalidator.display = "dynamic"; qsnquestionset_adult_qcquestion_1_vldmaxanswersvalidator.evaluationfunction = "customvalidatorevaluateisvalid"; 

althrough these 3 lines 4kb can imagine 4*10*207 quite lot. how can mark validators dynamic , set evaluationfunction same value without asp generating line me?

this code generated automatically asp.net when enableclientscript option set true. far i'm aware way rid of set false obvious drawback validation happen on server side during postback.
around tie custom javascript validation function related control event such textbox onblur event without knowing more detail values trying validate difficult speculate further whether solution.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -