Fire OnServerValidate Method When No Value Exists in Textbox

Discussion in 'ASP .Net' started by Rigs, Jun 28, 2004.

  1. Rigs

    Rigs Guest

    Hi,

    I have a textbox (txt1) with a Custom Validator (cv1) on a web form.
    The problem is that cv1's OnServerValidate method only fires when text
    exists in the textbox that cv1 is assigned to validate, and the user
    clicks the submit button. I'd like to have cv1's OnServerValidate
    method fire whenever the submit button is clicked on.

    Can anyone offer an explanation why this occurs and how I can have
    that method fire whenever the submit button is clicked? Please help!

    Thanks,
    -Rigs
    Rigs, Jun 28, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jm
    Replies:
    3
    Views:
    4,720
    Greg Burns
    Oct 16, 2003
  2. Mike P

    OnServerValidate

    Mike P, Oct 23, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    826
    Mike P
    Oct 23, 2003
  3. Rigs
    Replies:
    10
    Views:
    8,364
    Laurent Bugnion
    Nov 17, 2006
  4. Replies:
    0
    Views:
    1,346
  5. prady

    OnServerValidate not firing for custom validator

    prady, Mar 12, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    226
    prady
    Mar 12, 2007
Loading...

Share This Page