473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why Microsoft Examples generate error on IIS with .net 1.1: Issue with Validator Control

Hello:
I used the code in the first example from:
http://support.microsoft.com/default...b;en-us;316712
I get an "error on the page" line 4 char 1 syntax error Code:0 test.aspx
The folder where it is running has the following as the default script for
aspx:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_ isapi.dll

So, I am running .Net 1.1 on a win 2000 machine with IIS. I am using IE
version 6.0.2800.1106.xpsp2.030422-1633
It also has asp.net version 1.0 installed
What's wrong.
Apparently the error is generated by the validator code:
<asp:RequiredFieldValidator
id="RequiredfieldvalidatorHeight"
ControlToValidate="txtHeight"
ErrorMessage="Height field is empty"
Display="Static"
InitialValue="" Width="100%"
runat=server></asp:RequiredFieldValidator>
So, when I remove it, the error goes away.
Thanks for your help
Terry
Nov 18 '05 #1
3 1568
What HTML is being sent back to the browser?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Support" <Re****************@mail.oci.state.ga.us> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
Hello:
I used the code in the first example from:
http://support.microsoft.com/default...b;en-us;316712
I get an "error on the page" line 4 char 1 syntax error Code:0 test.aspx
The folder where it is running has the following as the default script for
aspx:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_ isapi.dll

So, I am running .Net 1.1 on a win 2000 machine with IIS. I am using IE
version 6.0.2800.1106.xpsp2.030422-1633
It also has asp.net version 1.0 installed
What's wrong.
Apparently the error is generated by the validator code:
<asp:RequiredFieldValidator
id="RequiredfieldvalidatorHeight"
ControlToValidate="txtHeight"
ErrorMessage="Height field is empty"
Display="Static"
InitialValue="" Width="100%"
runat=server></asp:RequiredFieldValidator>
So, when I remove it, the error goes away.
Thanks for your help
Terry

Nov 18 '05 #2
Here it is:
----------------------------------------------------------------------------
----------------------
<html>
<body>
<form name="form1" method="post" action="test.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtOTQ3NjUyMzM3Ozs+FAU8awA8fH42Zj9JvvtQNIY 51lE=" />

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

<span id="lblName">First Name:</span>
<input name="txtName" type="text" id="txtName" />
<span id="RequiredFieldValidatorName"
controltovalidate="txtName" errormessage="First Name field is empty"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid" initialvalue=""
style="color:Red;width:100%;visibility:hidden;">Fi rst Name field is
empty</span><br>

<span id="lblAge">Age:</span>
<input name="txtAge" type="text" id="txtAge" />
<span id="RequiredfieldvalidatorAge"
controltovalidate="txtAge" errormessage="Age field is empty"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid" initialvalue=""
style="color:Red;width:100%;visibility:hidden;">Ag e field is
empty</span><br>

<span id="lblHeight">Height:</span>
<input name="txtHeight" type="text" id="txtHeight" />
<span id="RequiredfieldvalidatorHeight" controltovalidate="txtHeight"
errormessage="Height field is empty"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid" initialvalue=""
style="color:Red;width:100%;visibility:hidden;">He ight field is empty</span>

<span id="RangeValidatorHeight" controltovalidate="txtHeight"
errormessage="Incorrect value for the height field" type="Integer"
evaluationfunction="RangeValidatorEvaluateIsValid" maximumvalue="10"
minimumvalue="1" style="color:Red;width:100%;visibility:hidden;">In correct
value for the height field</span><br>

<div id="valSum" headertext="Summary of Validation Errors:"
style="color:Red;font-family:verdana;font-size:12pt;display:none;">

</div><br>

<input type="submit" name="btnValidate" value="Validate"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); " language="javascript" id="btnValidate" />

<script language="javascript">
<!--
var Page_ValidationSummaries = new Array(document.all["valSum"]);
var Page_Validators = new
Array(document.all["RequiredFieldValidatorName"],
document.all["RequiredfieldvalidatorAge"],
document.all["RequiredfieldvalidatorHeight"],
document.all["RangeValidatorHeight"]);
// -->
</script>
<script language="javascript">
<!--
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if ((typeof(Page_ValidationVer) != "undefined") && (Page_ValidationVer
== "125"))
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
// -->
</script>
</form>
</body>
</html>
----------------------------------------------------------------------------
-----------------------------
Straight from the web site....
Thank you
TErry
"Support" <Re****************@mail.oci.state.ga.us> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
Hello:
I used the code in the first example from:
http://support.microsoft.com/default...b;en-us;316712
I get an "error on the page" line 4 char 1 syntax error Code:0 test.aspx
The folder where it is running has the following as the default script for
aspx:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_ isapi.dll

So, I am running .Net 1.1 on a win 2000 machine with IIS. I am using IE
version 6.0.2800.1106.xpsp2.030422-1633
It also has asp.net version 1.0 installed
What's wrong.
Apparently the error is generated by the validator code:
<asp:RequiredFieldValidator
id="RequiredfieldvalidatorHeight"
ControlToValidate="txtHeight"
ErrorMessage="Height field is empty"
Display="Static"
InitialValue="" Width="100%"
runat=server></asp:RequiredFieldValidator>
So, when I remove it, the error goes away.
Thanks for your help
Terry

Nov 18 '05 #3
Hrm... this HTML works just fine on my server. Have you tried accessing this
from a different machine?

Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Support" <Re****************@mail.oci.state.ga.us> wrote in message
news:Ob*************@TK2MSFTNGP10.phx.gbl...
Here it is:
-------------------------------------------------------------------------- -- ----------------------
<html>
<body>
<form name="form1" method="post" action="test.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwtOTQ3NjUyMzM3Ozs+FAU8awA8fH42Zj9JvvtQNIY 51lE=" />

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

<span id="lblName">First Name:</span>
<input name="txtName" type="text" id="txtName" />
<span id="RequiredFieldValidatorName"
controltovalidate="txtName" errormessage="First Name field is empty"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid" initialvalue=""
style="color:Red;width:100%;visibility:hidden;">Fi rst Name field is
empty</span><br>

<span id="lblAge">Age:</span>
<input name="txtAge" type="text" id="txtAge" />
<span id="RequiredfieldvalidatorAge"
controltovalidate="txtAge" errormessage="Age field is empty"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid" initialvalue=""
style="color:Red;width:100%;visibility:hidden;">Ag e field is
empty</span><br>

<span id="lblHeight">Height:</span>
<input name="txtHeight" type="text" id="txtHeight" />
<span id="RequiredfieldvalidatorHeight" controltovalidate="txtHeight"
errormessage="Height field is empty"
evaluationfunction="RequiredFieldValidatorEvaluate IsValid" initialvalue=""
style="color:Red;width:100%;visibility:hidden;">He ight field is empty</span>
<span id="RangeValidatorHeight" controltovalidate="txtHeight" errormessage="Incorrect value for the height field" type="Integer"
evaluationfunction="RangeValidatorEvaluateIsValid" maximumvalue="10"
minimumvalue="1" style="color:Red;width:100%;visibility:hidden;">In correct
value for the height field</span><br>

<div id="valSum" headertext="Summary of Validation Errors:"
style="color:Red;font-family:verdana;font-size:12pt;display:none;">

</div><br>

<input type="submit" name="btnValidate" value="Validate"
onclick="if (typeof(Page_ClientValidate) == 'function')
Page_ClientValidate(); " language="javascript" id="btnValidate" />

<script language="javascript">
<!--
var Page_ValidationSummaries = new Array(document.all["valSum"]);
var Page_Validators = new
Array(document.all["RequiredFieldValidatorName"],
document.all["RequiredfieldvalidatorAge"],
document.all["RequiredfieldvalidatorHeight"],
document.all["RangeValidatorHeight"]);
// -->
</script>
<script language="javascript">
<!--
var Page_ValidationActive = false;
if (typeof(clientInformation) != "undefined" &&
clientInformation.appName.indexOf("Explorer") != -1) {
if ((typeof(Page_ValidationVer) != "undefined") && (Page_ValidationVer
== "125"))
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
ValidatorCommonOnSubmit();
}
}
// -->
</script>
</form>
</body>
</html>
-------------------------------------------------------------------------- -- -----------------------------
Straight from the web site....
Thank you
TErry
"Support" <Re****************@mail.oci.state.ga.us> wrote in message
news:er**************@TK2MSFTNGP12.phx.gbl...
Hello:
I used the code in the first example from:
http://support.microsoft.com/default...b;en-us;316712
I get an "error on the page" line 4 char 1 syntax error Code:0 test.aspx The folder where it is running has the following as the default script for aspx:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_ isapi.dll

So, I am running .Net 1.1 on a win 2000 machine with IIS. I am using IE
version 6.0.2800.1106.xpsp2.030422-1633
It also has asp.net version 1.0 installed
What's wrong.
Apparently the error is generated by the validator code:
<asp:RequiredFieldValidator
id="RequiredfieldvalidatorHeight"
ControlToValidate="txtHeight"
ErrorMessage="Height field is empty"
Display="Static"
InitialValue="" Width="100%"
runat=server></asp:RequiredFieldValidator>
So, when I remove it, the error goes away.
Thanks for your help
Terry


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
5
by: tshad | last post by:
I was looking at a Custom Validator that 4 Guys had posted that would solve my RequiredValidator problem with CheckBoxLists and it says it can't find the .dll. But the dll is in both the Bin...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
48
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.