asp.net validation not validating

  • Thread starter Thread starter JV
  • Start date Start date
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?
 
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?
 
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

Back
Top