473,498 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript error

Hello All,

ASP.NET 1.1 and Visual Studio 2003.

I have a page which has few datagrids, validation controls and other server
controls. When the page is rendered in the browser I am seeing a javascript
error at the very bottom of the page. I am not using any custom javascript
code except for what is inherently generated by .NET framework.

When I tried debugging the javascript error using debugging tools for
windows, the debugger stopped at the "ValidatorOnLoad()" method in
WebUIValidation.js file.

function ValidatorOnLoad() {
if (typeof(Page_Validators) == "undefined")
return;
var i, val;
for (i = 0; i < Page_Validators.length; i++) {
val = Page_Validators[i];
if (typeof(val.evaluationfunction) == "string") { <-- DEBUGGER
stopped here
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") {
val.enabled = (val.enabled != "False");
}
ValidatorHookupControlID(val.controltovalidate, val);
ValidatorHookupControlID(val.controlhookup, val);
}
Page_ValidationActive = true;
}

Can anyone let me know what is the problem? Is it because of the validation
controls that I have on the page???

It is so frustrating to debug these generic javascript errors when you are
not using any custom code at all.

Thanks for any pointers!
Oct 4 '06 #1
2 2748
Try Registering ASP.NET on IIS again using
aspnet_regiis -i

Hopefully that should work.
--
Ameet Phadnis
Sr. Technical Consultant
e Tek Global Inc.
ASP Alliance Author Page: http://aspalliance.com/author.aspx?uId=44260
"Diffident" wrote:
Hello All,

ASP.NET 1.1 and Visual Studio 2003.

I have a page which has few datagrids, validation controls and other server
controls. When the page is rendered in the browser I am seeing a javascript
error at the very bottom of the page. I am not using any custom javascript
code except for what is inherently generated by .NET framework.

When I tried debugging the javascript error using debugging tools for
windows, the debugger stopped at the "ValidatorOnLoad()" method in
WebUIValidation.js file.

function ValidatorOnLoad() {
if (typeof(Page_Validators) == "undefined")
return;
var i, val;
for (i = 0; i < Page_Validators.length; i++) {
val = Page_Validators[i];
if (typeof(val.evaluationfunction) == "string") { <-- DEBUGGER
stopped here
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") {
val.enabled = (val.enabled != "False");
}
ValidatorHookupControlID(val.controltovalidate, val);
ValidatorHookupControlID(val.controlhookup, val);
}
Page_ValidationActive = true;
}

Can anyone let me know what is the problem? Is it because of the validation
controls that I have on the page???

It is so frustrating to debug these generic javascript errors when you are
not using any custom code at all.

Thanks for any pointers!
Oct 4 '06 #2
The following link did the trick for me:

http://www.velocityreviews.com/forum...alidation.html

I had a validation control which was commented using the <!-- --tags.

Thanks for your pointer!

"Ameet Phadnis(e Tek Global Inc.)" wrote:
Try Registering ASP.NET on IIS again using
aspnet_regiis -i

Hopefully that should work.
--
Ameet Phadnis
Sr. Technical Consultant
e Tek Global Inc.
ASP Alliance Author Page: http://aspalliance.com/author.aspx?uId=44260
"Diffident" wrote:
Hello All,

ASP.NET 1.1 and Visual Studio 2003.

I have a page which has few datagrids, validation controls and other server
controls. When the page is rendered in the browser I am seeing a javascript
error at the very bottom of the page. I am not using any custom javascript
code except for what is inherently generated by .NET framework.

When I tried debugging the javascript error using debugging tools for
windows, the debugger stopped at the "ValidatorOnLoad()" method in
WebUIValidation.js file.

function ValidatorOnLoad() {
if (typeof(Page_Validators) == "undefined")
return;
var i, val;
for (i = 0; i < Page_Validators.length; i++) {
val = Page_Validators[i];
if (typeof(val.evaluationfunction) == "string") { <-- DEBUGGER
stopped here
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") {
val.enabled = (val.enabled != "False");
}
ValidatorHookupControlID(val.controltovalidate, val);
ValidatorHookupControlID(val.controlhookup, val);
}
Page_ValidationActive = true;
}

Can anyone let me know what is the problem? Is it because of the validation
controls that I have on the page???

It is so frustrating to debug these generic javascript errors when you are
not using any custom code at all.

Thanks for any pointers!
Oct 4 '06 #3

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

Similar topics

8
3621
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
0
7121
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
7197
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...
1
6881
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.