473,395 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

asp.net validation not validating

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?
Nov 19 '05 #1
6 1203
Make sure your virtual directory has the aspnet client folder is
there...it has javascript necessary for validators.

Clint Hill
H3O Software
http://www.h3osoftware.com

JV wrote:
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?

Nov 19 '05 #2
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

"JV" <jo**********@goisc.com> wrote in message news:%2******************@TK2MSFTNGP12.phx.gbl...
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?
Nov 19 '05 #3
JV
Good suggestion, but already checked that ;)

"Clint Hill" <cl********@nospamath3osoftware.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
Make sure your virtual directory has the aspnet client folder is
there...it has javascript necessary for validators.

Clint Hill
H3O Software http://www.h3osoftware.com

JV wrote:
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?

Nov 19 '05 #4
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.

"JV" <jo**********@goisc.com> wrote
This is normally easy stuff, but it's failing spectactularly.

Nov 19 '05 #5
JV
Good suggestion, but already checked that ;)

"Clint Hill" <cl********@nospamath3osoftware.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
Make sure your virtual directory has the aspnet client folder is
there...it has javascript necessary for validators.

Clint Hill
H3O Software http://www.h3osoftware.com

JV wrote:
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?

Nov 19 '05 #6
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.

"JV" <jo**********@goisc.com> wrote
This is normally easy stuff, but it's failing spectactularly.

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dennis C. Drumm | last post by:
Is there a way to prevent the user from leaving a tab on a TabControl until all the controls on that tab have finished validating? The problem I am experiencing is when a control fails its...
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
5
by: Micky | last post by:
VB v7.1.3088 NET v1.1.4322 SP1 My mate has a strange problem regarding the ESC key and validation. When he hits the Cancel button on his form, the form does not validate. This is correct...
5
by: David | last post by:
Can anyone point me in the right direction. I am tring to ensure that the user input in a textbox is a Number. Any help would be great Thanks God Bless
1
by: Bill nguyen | last post by:
I use the sub below to detect data entry error. The problem is that users are still able to move out of the textbox AFTER the sub is run (and error msg popped up) without having to correct the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.