|
Login
September 09, 2010
you are here:-
Blog
Home
Blog
Blog
You must be logged in and have permission to create or edit a blog.
Search
My solution to the page_validators is undefined error
Location:
Blogs
Living in Software Development
Posted by:
host
2/2/2010 12:38 AM
Off and on over the years I have been haunted by the error "page_validators is undefined". Today it was coupled with "Unterminated string constant". I figured out why it was happening to me. I dynamically add validators to a page where i dynamically add textboxes to be filled in by users. In my code i determine the IDs of those validators by the names of configured fields. I noticed an embedded CRLF in one of my configured field names which was causing the generated validation script to also have a CRLF. In the script, I saw the closing quotation mark on the next line which was where the "Undetermined String Constant" error was coming from. Page_Validators is undefined just bubbled from that. So the moral of this story is make sure you don't have any hidden characters that are messing with your validation!
Permalink
|
Trackback
Comments (0)
Add Comment
Your name:
Title:
Comment:
Add Comment
Cancel
Blog
View All Recent Entries
Living in Software Development
Blog
All Blogs
Living in Software Development
Keywords
Phrase
Blog
Archive
<
September 2010
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
Monthly
July, 2010
February, 2010
April, 2009
March, 2009
June, 2008
May, 2008
December, 2007
November, 2007
September, 2007
August, 2007
April, 2007
February, 2007
January, 2007
December, 2006
November, 2006
October, 2006
July, 2006
Copyright 2008 by Serrated Software
|
Serrated Software
|
Privacy Statement
|
Terms Of Use