WebUIValidation.js Error

J

Joe

I have created a web application using C#. I have done several web
based apps in C# and have not had this problem before. I think this
may be a defect in the VisualSutdio.net2003.

I am using a regualar expression validator on a nested user control
within my page. Everytime I try to compile the app I recieve the
following message.

Microsoft JScript runtime error: 'undefined' is null or not an object

The error is being geneerated by the WebUIValdiation.js file here is
the page text. Any help anyone can give me would be grealty
appreciated.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<style>
.wait_division { BORDER-RIGHT: #ffffff 2px outset; PADDING-RIGHT:
5px; BORDER-TOP: #ffffff 2px outset; PADDING-LEFT: 5px; FONT-WEIGHT:
bold; FONT-SIZE: 14px; Z-INDEX: 200; LEFT: 230px; VISIBILITY: hidden;
PADDING-BOTTOM: 5px; BORDER-LEFT: #ffffff 2px outset; WIDTH: 300px;
COLOR: #000033; PADDING-TOP: 5px; BORDER-BOTTOM: #ffffff 2px outset;
FONT-FAMILY: Verdana; POSITION: absolute; TOP: 200px; HEIGHT: 100px;
BACKGROUND-COLOR: #ffff99; layer-background-color: #cccccc }
</style>
<link rel="stylesheet" type="text/css" href="styles/ows.css">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WebForm1.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="Form1">


<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>



<table class="Gutter" border="0" cellspacing="0" cellpadding="0"
width="100%">
<tr>
<td nowrap valign="top" align="left"><img alt="Logo"
src="images/en-US_PsychCorpLogo.gif"></td>
<td class="score-MainTitle" valign="middle" align="center">Clinical
Scoring System</td>
</tr>
</table>

<table id="SubHeader" class="BackgroundBlue" cellpadding="2"
width="100%">
<tr>
<td>
<table class="score-ScoringTestHeader" cellSpacing="1" cellPadding="1"
width="98%" border="0"
align="center">
<tbody>
<tr>
<td class="ms-descriptiontext" id="tdTitleTestEventID"
colspan="2"><b>
<span id="ScoringTestHeader_lblTestEventIDHeader">Scoring Test
Event -
202260</span></b></td>
<td class="ms-descriptiontext"><font
color="red"><b></b></font></td>
<td class="ms-descriptiontext"><strong><font
color="#ff0000">Locked</font></strong></td>
<td class="ms-descriptiontext" id="tdBucket"><b>
<span id="ScoringTestHeader_lblBucket">Single Key : First
Key</span></b></td>
</tr>
<tr>
<td class="ms-descriptiontext">Project Name:</td>
<td class="ms-descriptiontext" id="tdProjectName" align="left">
<span id="ScoringTestHeader_lblProjectName">WISC4Cdn</span></td>
<td></td>
<td class="ms-descriptiontext">Examiner Name:</td>
<td class="ms-descriptiontext" id="tdExaminerName" align="left">
<span id="ScoringTestHeader_lblExaminerName">Label</span></td>
</tr>
<tr>
<td class="ms-descriptiontext">Test Event ID:</td>
<td class="ms-descriptiontext" id="tdTEID" align="left">
<span id="ScoringTestHeader_lblTEID">202260</span></td>
<td></td>
<td class="ms-descriptiontext">Subtest Status:</td>
<td class="ms-descriptiontext" id="tdSubTestStatus" align="left">
<span id="ScoringTestHeader_lblSubTestStatus">Not
Started</span></td>
</tr>
<tr>
<td class="ms-descriptiontext">Date Received:</td>
<td>
<span id="ScoringTestHeader_lblDateRec"></span></td>
<td></td>
<td class="ms-descriptiontext">Subtest Name:</td>
<td class="ms-descriptiontext" id="tdSubTestName" align="left">
<span id="ScoringTestHeader_lblSubtestName">Demographics</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<table id="SubActionButtons" class="score-ActionButtonFrame"
cellpadding="1" width="100%">
<tr>
<td>

<table cellSpacing="0" cellPadding="2" width="300" border="0">
<tr>
<td class="ms-toolbar" vAlign="bottom" noWrap><IMG id="tbfilter"
alt="Requery" src="images/itsurvey.gif" border="0">
<A class="ms-toolbar" accessKey="N"
onclick="CompleteSubtestLater()" tabIndex="2"
href="CompleteSubtestLater()">
<font size="2">Complete Later</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" vAlign="bottom" noWrap><A class="ms-toolbar"
accessKey="N" tabIndex="2" href="../../help/contact.asp"><font
size="2">Email
Support</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" noWrap><A class="ms-toolbar" accessKey="N"
href="javascript:ApplyReversal()"><IMG height="28" alt="Reversal"
src="images/reversal.gif" width="30" border="0">
<font size="2">Reversal</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" noWrap><A class="ms-toolbar" accessKey="N"
href="javascript:ApplyDiscontinue()"><IMG height="28"
alt="Discontinue" src="images/discontinue.gif" width="30" border="0">
<font size="2">Discontinue</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" nowrap vAlign="bottom">
<A class="ms-toolbar" accessKey="N" tabIndex="2"
href="javascript:ShowEulaDialog()">
<IMG src="images/help.gif" border="0"><font size="2"> Help</font>
</A>
</td>
</tr>
</table>

</td>
</tr>
</table>
<br>
<!--Content Area Begin-->
<table border="0" cellpadding="0" cellspacing="0" width="99%"
align="center">
<tbody>
<tr>
<td width="1%"><img height="27" src="images/dlg_tl.gif"
width="13"></td>
<td background="images/dlg_tm.gif" width="98%">
<span id="lblSubtestName" class="score-ContentFrameHeader">
Subtest:</span>
</td>
<td width="1%"><img height="27" src="images/dlg_tr.gif"
width="13"></td>
</tr>
<tr>
<td background="images/dlg_ml.gif" height="52"
width="1%">&nbsp;</td>
<td bgcolor="#ffffff" height="52" width="98%" valign="top">
<P>
<!--Place scoring controls in here
<table border="0" cellpadding="0" cellspacing="0" style="WIDTH:
95%" width="95%">
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
End Place scoring controls-->

<table class="Element" width='50%'>
<tr>
<td><span id="1072_lblScreenText">Record Form
Demographics</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3768_lblQuestion">Handedness-pencil</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3768:txtReponse" type="text" id="1072_3768_txtReponse" />
<span id="1072_3768_RegularExpressionValidator1"
controltovalidate="1072_3768_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3769_lblQuestion">Handedness - brush teeth</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3769:txtReponse" type="text" id="1072_3769_txtReponse" />
<span id="1072_3769_RegularExpressionValidator1"
controltovalidate="1072_3769_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3770_lblQuestion">Handedness- ball</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3770:txtReponse" type="text" id="1072_3770_txtReponse" />
<span id="1072_3770_RegularExpressionValidator1"
controltovalidate="1072_3770_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3771_lblQuestion">Medications?</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3771:txtReponse" type="text" id="1072_3771_txtReponse" />
<span id="1072_3771_RegularExpressionValidator1"
controltovalidate="1072_3771_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3772_lblQuestion">Wearing aid, if applicable?</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3772:txtReponse" type="text" id="1072_3772_txtReponse" />
<span id="1072_3772_RegularExpressionValidator1"
controltovalidate="1072_3772_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3773_lblQuestion">General Comments</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3773:txtReponse" type="text" id="1072_3773_txtReponse" />
<span id="1072_3773_RegularExpressionValidator1"
controltovalidate="1072_3773_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

</table>
</P>
<P>&nbsp;</P>
</td>
<td background="images/dlg_mr.gif" height="52"
width="1%">&nbsp;</td>
</tr>
<tr>
<td height="11" valign="top"><img height="13"
src="images/dlg_bl.gif" width="13"></td>
<td background="images/dlg_bm.gif" height="11"></td>
<td height="11" valign="top"><img height="13"
src="images/dlg_br.gif" width="13"></td>
</tr>
</tbody>
</table>
<!--Content Area End-->

<script language="javascript">
<!--
var Page_Validators = new
Array(document.all["1072_3768_RegularExpressionValidator1"],
document.all["1072_3769_RegularExpressionValidator1"],
document.all["1072_3770_RegularExpressionValidator1"],
document.all["1072_3771_RegularExpressionValidator1"],
document.all["1072_3772_RegularExpressionValidator1"],
document.all["1072_3773_RegularExpressionValidator1"]);
// -->
</script>


<script language="javascript">
<!--
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if (typeof(Page_ValidationVer) == "undefined")
alert("Unable to find script library
'/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. Try placing
this file manually, or reinstall by running 'aspnet_regiis -c'.");
else if (Page_ValidationVer != "125")
alert("This page uses an incorrect version of
WebUIValidation.js. The page expects version 125. The script library
is " + Page_ValidationVer + ".");
else
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
// -->


//HERE is the where it is blowing up in the WebUI.js

function ValidatorOnLoad() {
if (typeof(Page_Validators) == "undefined")
return;
var i, val;
for (i = 0; i < Page_Validators.length; i++) {
val = Page_Validators;
//--------------------------------------------------
//the Following line I recieve the error message:
//Microsoft JScript runtime error: 'undefined' is null or not an
object
//--------------------------------------------------
if (typeof(val.evaluationfunction) == "string") {
eval("val.evaluationfunction = " + val.evaluationfunction
+ ";");
}
if (typeof(val.isvalid) == "string") {
if (val.isvalid == "False") {
val.isvalid = false;
Page_IsValid = false;
}
else {
val.isvalid = true;
}
} else {
val.isvalid = true;
}
if (typeof(val.enabled) == "string") {
 
B

bruce barker

the error means "RegularExpressionValidatorEvaluateIsValid" function is
notdefined. normally this function is defined in

<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>

be sure the url is working and that the file is correct.


-- bruce (sqlwork.com)



Joe said:
I have created a web application using C#. I have done several web
based apps in C# and have not had this problem before. I think this
may be a defect in the VisualSutdio.net2003.

I am using a regualar expression validator on a nested user control
within my page. Everytime I try to compile the app I recieve the
following message.

Microsoft JScript runtime error: 'undefined' is null or not an object

The error is being geneerated by the WebUIValdiation.js file here is
the page text. Any help anyone can give me would be grealty
appreciated.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<style>
.wait_division { BORDER-RIGHT: #ffffff 2px outset; PADDING-RIGHT:
5px; BORDER-TOP: #ffffff 2px outset; PADDING-LEFT: 5px; FONT-WEIGHT:
bold; FONT-SIZE: 14px; Z-INDEX: 200; LEFT: 230px; VISIBILITY: hidden;
PADDING-BOTTOM: 5px; BORDER-LEFT: #ffffff 2px outset; WIDTH: 300px;
COLOR: #000033; PADDING-TOP: 5px; BORDER-BOTTOM: #ffffff 2px outset;
FONT-FAMILY: Verdana; POSITION: absolute; TOP: 200px; HEIGHT: 100px;
BACKGROUND-COLOR: #ffff99; layer-background-color: #cccccc }
</style>
<link rel="stylesheet" type="text/css" href="styles/ows.css">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form name="Form1" method="post" action="WebForm1.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="Form1">


<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>



<table class="Gutter" border="0" cellspacing="0" cellpadding="0"
width="100%">
<tr>
<td nowrap valign="top" align="left"><img alt="Logo"
src="images/en-US_PsychCorpLogo.gif"></td>
<td class="score-MainTitle" valign="middle" align="center">Clinical
Scoring System</td>
</tr>
</table>

<table id="SubHeader" class="BackgroundBlue" cellpadding="2"
width="100%">
<tr>
<td>
<table class="score-ScoringTestHeader" cellSpacing="1" cellPadding="1"
width="98%" border="0"
align="center">
<tbody>
<tr>
<td class="ms-descriptiontext" id="tdTitleTestEventID"
colspan="2"><b>
<span id="ScoringTestHeader_lblTestEventIDHeader">Scoring Test
Event -
202260</span></b></td>
<td class="ms-descriptiontext"><font
color="red"><b></b></font></td>
<td class="ms-descriptiontext"><strong><font
color="#ff0000">Locked</font></strong></td>
<td class="ms-descriptiontext" id="tdBucket"><b>
<span id="ScoringTestHeader_lblBucket">Single Key : First
Key</span></b></td>
</tr>
<tr>
<td class="ms-descriptiontext">Project Name:</td>
<td class="ms-descriptiontext" id="tdProjectName" align="left">
<span id="ScoringTestHeader_lblProjectName">WISC4Cdn</span></td>
<td></td>
<td class="ms-descriptiontext">Examiner Name:</td>
<td class="ms-descriptiontext" id="tdExaminerName" align="left">
<span id="ScoringTestHeader_lblExaminerName">Label</span></td>
</tr>
<tr>
<td class="ms-descriptiontext">Test Event ID:</td>
<td class="ms-descriptiontext" id="tdTEID" align="left">
<span id="ScoringTestHeader_lblTEID">202260</span></td>
<td></td>
<td class="ms-descriptiontext">Subtest Status:</td>
<td class="ms-descriptiontext" id="tdSubTestStatus" align="left">
<span id="ScoringTestHeader_lblSubTestStatus">Not
Started</span></td>
</tr>
<tr>
<td class="ms-descriptiontext">Date Received:</td>
<td>
<span id="ScoringTestHeader_lblDateRec"></span></td>
<td></td>
<td class="ms-descriptiontext">Subtest Name:</td>
<td class="ms-descriptiontext" id="tdSubTestName" align="left">
<span id="ScoringTestHeader_lblSubtestName">Demographics</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<table id="SubActionButtons" class="score-ActionButtonFrame"
cellpadding="1" width="100%">
<tr>
<td>

<table cellSpacing="0" cellPadding="2" width="300" border="0">
<tr>
<td class="ms-toolbar" vAlign="bottom" noWrap><IMG id="tbfilter"
alt="Requery" src="images/itsurvey.gif" border="0">
<A class="ms-toolbar" accessKey="N"
onclick="CompleteSubtestLater()" tabIndex="2"
href="CompleteSubtestLater()">
<font size="2">Complete Later</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" vAlign="bottom" noWrap><A class="ms-toolbar"
accessKey="N" tabIndex="2" href="../../help/contact.asp"><font
size="2">Email
Support</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" noWrap><A class="ms-toolbar" accessKey="N"
href="javascript:ApplyReversal()"><IMG height="28" alt="Reversal"
src="images/reversal.gif" width="30" border="0">
<font size="2">Reversal</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" noWrap><A class="ms-toolbar" accessKey="N"
href="javascript:ApplyDiscontinue()"><IMG height="28"
alt="Discontinue" src="images/discontinue.gif" width="30" border="0">
<font size="2">Discontinue</font></A>&nbsp;&nbsp;|
</td>
<td class="ms-toolbar" nowrap vAlign="bottom">
<A class="ms-toolbar" accessKey="N" tabIndex="2"
href="javascript:ShowEulaDialog()">
<IMG src="images/help.gif" border="0"><font size="2"> Help</font>
</A>
</td>
</tr>
</table>

</td>
</tr>
</table>
<br>
<!--Content Area Begin-->
<table border="0" cellpadding="0" cellspacing="0" width="99%"
align="center">
<tbody>
<tr>
<td width="1%"><img height="27" src="images/dlg_tl.gif"
width="13"></td>
<td background="images/dlg_tm.gif" width="98%">
<span id="lblSubtestName" class="score-ContentFrameHeader">
Subtest:</span>
</td>
<td width="1%"><img height="27" src="images/dlg_tr.gif"
width="13"></td>
</tr>
<tr>
<td background="images/dlg_ml.gif" height="52"
width="1%">&nbsp;</td>
<td bgcolor="#ffffff" height="52" width="98%" valign="top">
<P>
<!--Place scoring controls in here
<table border="0" cellpadding="0" cellspacing="0" style="WIDTH:
95%" width="95%">
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
End Place scoring controls-->

<table class="Element" width='50%'>
<tr>
<td><span id="1072_lblScreenText">Record Form
Demographics</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3768_lblQuestion">Handedness-pencil</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3768:txtReponse" type="text" id="1072_3768_txtReponse" />
<span id="1072_3768_RegularExpressionValidator1"
controltovalidate="1072_3768_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3769_lblQuestion">Handedness - brush teeth</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3769:txtReponse" type="text" id="1072_3769_txtReponse" />
<span id="1072_3769_RegularExpressionValidator1"
controltovalidate="1072_3769_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3770_lblQuestion">Handedness- ball</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3770:txtReponse" type="text" id="1072_3770_txtReponse" />
<span id="1072_3770_RegularExpressionValidator1"
controltovalidate="1072_3770_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3771_lblQuestion">Medications?</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3771:txtReponse" type="text" id="1072_3771_txtReponse" />
<span id="1072_3771_RegularExpressionValidator1"
controltovalidate="1072_3771_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3772_lblQuestion">Wearing aid, if applicable?</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3772:txtReponse" type="text" id="1072_3772_txtReponse" />
<span id="1072_3772_RegularExpressionValidator1"
controltovalidate="1072_3772_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

<tr>
<td class="ms-toolbar" nowrap align="right" width="33%"><span
id="1072_3773_lblQuestion">General Comments</span></td>
<td class="ms-toolbar" nowrap align="left" width="33%"><input
name="1072:3773:txtReponse" type="text" id="1072_3773_txtReponse" />
<span id="1072_3773_RegularExpressionValidator1"
controltovalidate="1072_3773_txtReponse" errormessage="Must be a value
of 1-5" evaluationfunction="RegularExpressionValidatorEvaluateIsValid"
validationexpression="([1-5])"
style="color:Red;visibility:hidden;">Must be a value of
1-5</span></td>
</tr>
<tr>
<td class="ms-toolbar" nowrap align="right" width="100%"
colspan="2"></td>
</tr>

</table>
</P>
<P>&nbsp;</P>
</td>
<td background="images/dlg_mr.gif" height="52"
width="1%">&nbsp;</td>
</tr>
<tr>
<td height="11" valign="top"><img height="13"
src="images/dlg_bl.gif" width="13"></td>
<td background="images/dlg_bm.gif" height="11"></td>
<td height="11" valign="top"><img height="13"
src="images/dlg_br.gif" width="13"></td>
</tr>
</tbody>
</table>
<!--Content Area End-->

<script language="javascript">
<!--
var Page_Validators = new
Array(document.all["1072_3768_RegularExpressionValidator1"],
document.all["1072_3769_RegularExpressionValidator1"],
document.all["1072_3770_RegularExpressionValidator1"],
document.all["1072_3771_RegularExpressionValidator1"],
document.all["1072_3772_RegularExpressionValidator1"],
document.all["1072_3773_RegularExpressionValidator1"]);
// -->
</script>


<script language="javascript">
<!--
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if (typeof(Page_ValidationVer) == "undefined")
alert("Unable to find script library
'/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. Try placing
this file manually, or reinstall by running 'aspnet_regiis -c'.");
else if (Page_ValidationVer != "125")
alert("This page uses an incorrect version of
WebUIValidation.js. The page expects version 125. The script library
is " + Page_ValidationVer + ".");
else
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
// -->


//HERE is the where it is blowing up in the WebUI.js

function ValidatorOnLoad() {
if (typeof(Page_Validators) == "undefined")
return;
var i, val;
for (i = 0; i < Page_Validators.length; i++) {
val = Page_Validators;
//--------------------------------------------------
//the Following line I recieve the error message:
//Microsoft JScript runtime error: 'undefined' is null or not an
object
//--------------------------------------------------
if (typeof(val.evaluationfunction) == "string") {
eval("val.evaluationfunction = " + val.evaluationfunction
+ ";");
}
if (typeof(val.isvalid) == "string") {
if (val.isvalid == "False") {
val.isvalid = false;
Page_IsValid = false;
}
else {
val.isvalid = true;
}
} else {
val.isvalid = true;
}
if (typeof(val.enabled) == "string") {
 

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

Top