ASP.NET Client Validation Javascript Partially Rendering

B

Bill

I have asked this question on stackoverflow (http://stackoverflow.com/
questions/6686513/asp-net-client-validation-javascript-partially-
rendering) but have not received an answer. I have been fruitlessly
trying to resolve it on my own.

This is happening on my development machine and the same codebase is
working in production. So I believe this to be an IIS/Framework issue.
It affects all pages.

On both servers, the Page_Validators are setup correctly:

<script type="text/javascript">
<!--
var Page_Validators = new
Array(document.getElementById("ValidatorInsurancePayerRequired"),
document.getElementById("ValidatorCheckPostDateRequired"),
document.getElementById("ValidatorCheckPostDateFormat"),
document.getElementById("ValidatorCheckNumberRequired"),
document.getElementById("ValidatorCheckTotalRequired"),
document.getElementById("ValidatorCheckTotalFormat"));
// -->
</script>
However, on my development machine it does not render the script block
that sets the validation properties:

<script type="text/javascript">
<!--
var ValidatorInsurancePayerRequired = document.all ?
document.all["ValidatorInsurancePayerRequired"] :
document.getElementById("ValidatorInsurancePayerRequired");
ValidatorInsurancePayerRequired.controltovalidate = "txtPayer";
ValidatorInsurancePayerRequired.errormessage = "<br>Insurance Payer Is
Required";
ValidatorInsurancePayerRequired.display = "Dynamic";
ValidatorInsurancePayerRequired.evaluationfunction =
"RequiredFieldValidatorEvaluateIsValid";
ValidatorInsurancePayerRequired.initialvalue = "";
..
.. all other Page Validators
..
// -->
</script>
I have tried running aspnet_regiis -c to reinstall the validation
scripts. Failing that I tried that with a -e (remove) followed by -i
(install).

Any ideas?
 
B

Brian Cryer

Bill said:
I have asked this question on stackoverflow (http://stackoverflow.com/
questions/6686513/asp-net-client-validation-javascript-partially-
rendering) but have not received an answer. I have been fruitlessly
trying to resolve it on my own.

This is happening on my development machine and the same codebase is
working in production. So I believe this to be an IIS/Framework issue.
It affects all pages.

On both servers, the Page_Validators are setup correctly:
I have tried running aspnet_regiis -c to reinstall the validation
scripts. Failing that I tried that with a -e (remove) followed by -i
(install).

Any ideas?

Are you using the same browser when viewing both the dev and production
machines?

Does it make a difference if you use a different browser?

Does it make a difference if you clear the browser cache first?

Have you overloaded any Render functions with your own?
 

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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top