Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Error in WebUIValidation.js function ValidatorOnLoad?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ekkehard Preis - 15 Jul 2005 10:40 GMT
Hi,
I'm getting some strange error on one of my pages:
The page is composed of some nested ascx controls, the error
I am getting is 'undefined is null or not an object'.

The error occurs in line 180 of WebUiValidation.js (if
(typeof(val.evaluationfunction) == "string") ) and is caused by an Error (?)
in the Page_Validators Array:
The Index of the Array starts from 0 up to 5 and then suddenly continues
from 20 up to 24.
The Function now uses a counter Variable from 0 to Page_Validators.length to
get all Validators which causes the error above when getting to index 6....

I'd really like to know what causes this very strange behaviour of the Array
and how can I avoid it?
I'm using .net 1.1.4322

With best regards
Ekkehard
Kevin Yu [MSFT] - 16 Jul 2005 03:39 GMT
Hi Ekkehard,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
Signature

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

Steven Cheng[MSFT] - 18 Jul 2005 02:26 GMT
Hi Ekkehard,

As for the script error you encountered in your ASP.NET page, is the page
suffering the error a very simple page , have you turn on SmartNavigation
on the page? Based on my experience, sometimes there'll occur some script
problems with the buildin script when smartNavigation is turn on.  Anyway,
I suggest you try create a very simple page which use some simple
validation controls and test it to see whether the sample problem occurs.
Also, mostly this is a environment specific problem and please make sure
whether your page works on other test machine.

Thanks,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| X-Tomcat-ID: 35132971
| References: <978F71CC-8C06-41E9-8E43-BEB5C7F4A8FF@microsoft.com>
[quoted text clipped - 11 lines]
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:112579
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
[quoted text clipped - 7 lines]
| "This posting is provided "AS IS" with no warranties, and confers no
| rights."
Ekkehard Preis - 18 Jul 2005 14:54 GMT
> Hi Ekkehard,
>
> As for the script error you encountered in your ASP.NET page, is the page
> suffering the error a very simple page

No, as already mentioned, the page is very complex. Its a Dot Net Nuke
Module that itself consists of several WebUser Controls

> , have you turn on SmartNavigation

No, Smart Navigation is not turned on

> on the page? Based on my experience, sometimes there'll occur some script
> problems with the buildin script when smartNavigation is turn on.  Anyway,
> I suggest you try create a very simple page which use some simple

I am sure the error won't occur on a simple page, I think the problem is the
complex page (having nested WebControls) but the error must not occure
anyway.
To give you an idea
Page_Validators[5] has id =
_ctl0__ctl2__ctl0_CMSEditor1_FloatingInterval1_RegularExpressionValidator9

Page_Validators[20] has id
_ctl0__ctl2__ctl0_CMSEditor1_FloatingRateCalculation2_IndexTenor_RegularExpressionValidator9

The Page_Validators array having the following  indizes:
0.1.2.3.4.5.20.21.22.23.24

> validation controls and test it to see whether the sample problem occurs.
> Also, mostly this is a environment specific problem and please make sure
> whether your page works on other test machine.

As far as I tested it, the problem is not computer specific...

> Thanks,
>
> Steven Cheng
> Microsoft Online Support

Regards Ekkehard
Steven Cheng[MSFT] - 20 Jul 2005 10:13 GMT
Thanks for your followup Ekkehard,

If so, I think this is a page specific problem rather than environment
specific. Have you tried isolate the problem page such as remove the count
of the validation controls on the page so as to get tha simpliefied page?  
If you can provide a simplified page which can repro the problem , we can
try performing some tests on our side.

Thanks,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: Error in WebUIValidation.js function ValidatorOnLoad?
| thread-index: AcWLoCgAO7zBBc1uQ3uK8gbI75lj3w==
| X-WBNR-Posting-Host: 217.29.147.110
| From: "=?Utf-8?B?RWtrZWhhcmQgUHJlaXM=?=" <ekke@online.nospam>
| References:  <978F71CC-8C06-41E9-8E43-BEB5C7F4A8FF@microsoft.com>
<SxWaj#aiFHA.3120@TK2MSFTNGXA01.phx.gbl>
<8wBe9eziFHA.588@TK2MSFTNGXA01.phx.gbl>
| Subject: RE: Error in WebUIValidation.js function ValidatorOnLoad?
| Date: Mon, 18 Jul 2005 06:54:03 -0700
[quoted text clipped - 13 lines]
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:112844
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
[quoted text clipped - 22 lines]
|
| Page_Validators[20] has id=
_ctl0__ctl2__ctl0_CMSEditor1_FloatingRateCalculation2_IndexTenor_RegularExpr
essionValidator9

| The Page_Validators array having the following  indizes:
| 0.1.2.3.4.5.20.21.22.23.24
[quoted text clipped - 11 lines]
|
| Regards Ekkehard

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.