Groups | Blog | Home
all groups > asp.net webcontrols > march 2004 >

asp.net webcontrols : Validation not working


Jeff Tolman
3/11/2004 10:08:54 AM
For some reason, validation is no longer working on any of my fields. When
I look at the source returned to the browser, I see that the PageValidation
variable is set to false. But why? I can't find any of the obvious places
in the application where this is set.

ALL suggestions are much welcomed!

Thanks to all!

Jeff Tolman
jeff.tolman@enm.com

Jeff Tolman
3/11/2004 10:41:51 AM
Hi Alvin!

I checked the machine.config file and it has been untouched (i.e. it's the
original file installed with Framework v1.1).

As for the other suggestion, I'm not sure I understand what you mean by
validation folder? You mean the folder that contains the webform?
Basically what I have is a root web folder and the webform resides in a
folder one level down. The web.config file resides in the web root folder.

Thanks!

Jeff

[quoted text, click to view]

Alvin Bruney [MVP]
3/11/2004 12:14:26 PM
First examine to see if your validation folder in the web root is still
there and you have access to it. Next, have a look at the machine config
file to find out if the validation files are pointing to the folder in the
web root

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
[quoted text, click to view]

Alvin Bruney [MVP]
3/11/2004 6:38:11 PM
no, see what this path points to on your hard drive. It should map to some
validation files
C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322. Validation controls
look to the files pointed to at this path to know how to validate

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
[quoted text, click to view]

tim.sale NO[at]SPAM theplatform.com
3/16/2004 12:49:00 AM
I'm having a very similiar problem, accept that the validation does
occur on my server, but it happens AFTER it's alreeayd tried running
all the code. For example, I'm adding users to a db, but I want to
validate the names and email addresses first. If the update fails
because of something like a primary key violation, then i see all the
error messages, such as "missing first name". However, if there are no
errors in the update statement, if goes on to the next page. It never
validates

this was working fine until today when i noticed that the asp_net
folder was missing. I've since replaced that, but it hasn't helped.

--tim

[quoted text, click to view]
AddThis Social Bookmark Button