472,117 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 1105
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
reply views Thread by leo001 | last post: by

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.