473,404 Members | 2,137 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,404 software developers and data experts.

Validation client javascript error

In the file WebUIValidation.js, when a postback that
doesn't fail the validation has a javascript error saying
summary is undefined in the ValidationSummaryOnSubmit
function. Page_ValidationSummaries has a length of 1 but
there are no array entries.

This is the line that fails:

summary.style.display = "none";

TIA,
Gary Varga
Nov 17 '05 #1
3 3023
Hi Gary,

In order to help you, I need to recreate this problem on my own machine.
What are the steps for setting up a page that will generate this error?

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Gary Varga" <MS**@VargaLtd.com>
Sender: "Gary Varga" <MS**@VargaLtd.com>
Subject: Validation client javascript error
Date: Wed, 27 Aug 2003 06:30:04 -0700
Lines: 12
Message-ID: <0d****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNsn1L2OZnmTDrgR4SJMhBem5YJYA==
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:171846
NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

In the file WebUIValidation.js, when a postback that
doesn't fail the validation has a javascript error saying
summary is undefined in the ValidationSummaryOnSubmit
function. Page_ValidationSummaries has a length of 1 but
there are no array entries.

This is the line that fails:

summary.style.display = "none";

TIA,
Gary Varga


Nov 17 '05 #2
Thanks for the reply, Mike.

I have a control derived from ValidationSummary in a dll.
I used this in a user control and included it in a page.
This page is derived from a class which itself derives
from System.Web.UI.Page.

I can send you the dll and the updated WebUIValidation.js
document - yes I have added to this in one place, I added
a new display type - if you want.

Regards,
Gary
-----Original Message-----
Hi Gary,

In order to help you, I need to recreate this problem on my own machine.What are the steps for setting up a page that will generate this error?
Thank you, Mike Moore
Microsoft, ASP.NET

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

--------------------
Content-Class: urn:content-classes:message
From: "Gary Varga" <MS**@VargaLtd.com>
Sender: "Gary Varga" <MS**@VargaLtd.com>
Subject: Validation client javascript error
Date: Wed, 27 Aug 2003 06:30:04 -0700
Lines: 12
Message-ID: <0d****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Thread-Index: AcNsn1L2OZnmTDrgR4SJMhBem5YJYA==
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:171846 NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

In the file WebUIValidation.js, when a postback that
doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit
function. Page_ValidationSummaries has a length of 1 but there are no array entries.

This is the line that fails:

summary.style.display = "none";

TIA,
Gary Varga


.

Nov 17 '05 #3
Hi Gary,

Here's my understanding of your problem statement.
You have a custom validation control and you have customized your
WebUIValidation.js file. After posting your page, the new page fails with a
client script error related to a modified portion of WebUIValidation.js.
This portion of your code expects an array with one entry, but the array
has no entries.

---
I recommend that you use view source to examine what the browser is
receiving after the postback. Find the part that adds an entry to your
Page_ValidationSummaries array. Somewhere within this you should see how it
fails to add an entry to the array. This can then help you find what to
change in your code so that the javascript code is correct.

As part of this, I think you may want to create a new test page which is
simplified. Remove as much complexity as possible while still reproducing
the error.

I realize this isn't an answer, but I hop it helps.

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Gary Varga" <MS**@VargaLtd.com>
Sender: "Gary Varga" <MS**@VargaLtd.com>
References: <0d****************************@phx.gbl> <ql**************@cpmsftngxa06.phx.gbl> Subject: RE: Validation client javascript error
Date: Thu, 28 Aug 2003 02:06:27 -0700
Lines: 70
Message-ID: <09****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNtQ6mL2pSZcg75QsavRpyOSTxcvg==
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:172224
NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Thanks for the reply, Mike.

I have a control derived from ValidationSummary in a dll.
I used this in a user control and included it in a page.
This page is derived from a class which itself derives
from System.Web.UI.Page.

I can send you the dll and the updated WebUIValidation.js
document - yes I have added to this in one place, I added
a new display type - if you want.

Regards,
Gary
-----Original Message-----
Hi Gary,

In order to help you, I need to recreate this problem on

my own machine.
What are the steps for setting up a page that will

generate this error?

Thank you, Mike Moore
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties,

and confers no rights.


--------------------
Content-Class: urn:content-classes:message
From: "Gary Varga" <MS**@VargaLtd.com>
Sender: "Gary Varga" <MS**@VargaLtd.com>
Subject: Validation client javascript error
Date: Wed, 27 Aug 2003 06:30:04 -0700
Lines: 12
Message-ID: <0d****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Thread-Index: AcNsn1L2OZnmTDrgR4SJMhBem5YJYA==
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:171846 NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

In the file WebUIValidation.js, when a postback that
doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit
function. Page_ValidationSummaries has a length of 1 but there are no array entries.

This is the line that fails:

summary.style.display = "none";

TIA,
Gary Varga


.


Nov 17 '05 #4

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

Similar topics

14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
5
by: Gary Vidal | last post by:
I have a client side Javascript which checks an OrderQuantityField against a hidden Textbox of the Minimum Order Quantity. I dont want to do validation on a postback. I would like to be able to...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
6
by: Stephen | last post by:
Hi, Does Validation controls like "Required field validator".... ever work with Netscape or we have to write javascript for either client-side or write server side validation. Please advice....
5
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For...
5
by: Kyle | last post by:
On my Development System, all the page validation controls work fine (WinXP Pro + SP2, VS.NET 2003, .NET v1.1.4322). On the Production System, none of the page validation controls are working...
12
by: Dabbler | last post by:
I need to insure that at least one of three phone number fields has a value (requiredfield) but I'm not sure of a way to implement this without server side logic. Is there a way to use the...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.