469,571 Members | 1,249 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,571 developers. It's quick & easy.

required field validators and other code execution

In an ASP.Net Web page that has multiple Required field validators and a
command button. The when clicking the button the click event does not occur
until all validator conditions are meet.

Is it possible for when clicking on the button to run the code before the
validator checks?
Nov 19 '05 #1
1 1061
You might have to make all the RequiredFieldValidators, Custom
Validators so that validation occurs on the server instead of the
client.
Then set CausesValidation=False on the button. Then at the end of the
Sub that handles the button click, put Page.Validate
Just an intitail thought, not sure if that will work though.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by MrMike | last post: by
5 posts views Thread by Brent Burkart | last post: by
1 post views Thread by Big E | last post: by
2 posts views Thread by Dan | last post: by
3 posts views Thread by VB Programmer | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.