asp.net validation not validating

J

JV

This is normally easy stuff, but it's failing spectactularly.

I added the server controls and configured several validation controls,
including a summary control.
I set my button control's "CausesValidation" property to true.

Build and test: I click the button, and in the button click handler I check
the IsValid property of the page and it returns true even though I purposely
entered no data on a required field. In fact, none of the validators appear
to be doing anything.

Anyone ever seen this happen?
 
?

=?iso-8859-1?Q?Guillermo_Gonz=E1lez_A.?=

Hi JV,

Try executing the next sentence, in the Visual Studio 2003 Command Prompt:

aspnet_regiis -c

Guillermo G.


--------------------------------------------------------------------------------

Guillermo González Arroyave :: MCP ASP.Net C# :: DCE4

This is normally easy stuff, but it's failing spectactularly.

I added the server controls and configured several validation controls,
including a summary control.
I set my button control's "CausesValidation" property to true.

Build and test: I click the button, and in the button click handler I check
the IsValid property of the page and it returns true even though I purposely
entered no data on a required field. In fact, none of the validators appear
to be doing anything.

Anyone ever seen this happen?
 
J

JV

Ever have one of those days? I wasted an hour or so on what turned out to
be a "DFP" error. Had a couple of fields that were named very similarly,
and overlooked the fact that some of the validators were pointing to the
wrong fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top