RequiredFieldValidator on button click

Discussion in 'ASP .Net' started by =?Utf-8?B?TWlrZQ==?=, Aug 1, 2007.

  1. Hi,

    How can I make RequiredFieldValidator triggered on button click?
    in my form I have a wizard that contain a search button few textboxes with
    RequiredFieldValidators for each and I have set the ControlToValidate and the
    ErrorMessage Properties and included a ValidationSummary, but when the
    textboxes are empty and on clicking my search button the
    RequiredFieldValidators are not triggered and if I enter a space character in
    one of the textboxes the RequiredFieldValidator of the concerned textbox is
    triggered (working)
    so, how can I specify to RequiredFieldValidators to wok in my button click.


    thanks


    --
    Regards,
    M.Rochdi
    =?Utf-8?B?TWlrZQ==?=, Aug 1, 2007
    #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. Purvi T
    Replies:
    0
    Views:
    821
    Purvi T
    Oct 19, 2004
  2. RSB
    Replies:
    4
    Views:
    7,774
    Hannodb
    May 5, 2008
  3. mike parr
    Replies:
    1
    Views:
    459
    Marina
    May 20, 2004
  4. Ben Fidge
    Replies:
    5
    Views:
    722
    S. Justin Gengo
    Jun 15, 2004
  5. Amy
    Replies:
    0
    Views:
    960
Loading...

Share This Page