PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

ASP.NET Client Validation Javascript Partially Rendering

 
 
Bill
Guest
Posts: n/a
 
      14th Jul 2011
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?
 
Reply With Quote
 
 
 
 
Brian Cryer
Guest
Posts: n/a
 
      15th Jul 2011
"Bill" <(E-Mail Removed)> wrote in message
news:71ff70dc-769e-42cb-a687-(E-Mail Removed)...
>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:

<snip>
> 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?
--
Brian Cryer
http://www.cryer.co.uk/brian


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run client side javascript with Validation Control goscottie@gmail.com Microsoft ASP .NET 2 21st Oct 2008 08:10 PM
Client-Side Validation with Validators and JavaScript Nathan Sokalski Microsoft ASP .NET 4 11th Feb 2008 07:58 PM
Checkboxlist - validation - client side javascript =?Utf-8?B?U2FuZHk=?= Microsoft ASP .NET 0 27th May 2005 04:56 PM
Client Validation Javascript not rendering =?Utf-8?B?Rm91cmdl?= Microsoft ASP .NET 2 26th Jan 2005 05:07 AM
Validation client javascript error Gary Varga Microsoft ASP .NET 3 29th Aug 2003 06:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:29 AM.