RequiredFieldValidator not working with Button "onclick" Confirm.

Discussion in 'ASP .Net Web Controls' started by michaelg83@yahoo.com, Jun 20, 2006.

  1. Guest

    I'm having a problem with the requiredfieldvalidator and the onclick
    confirm in a submit button. Basically the button is running the code
    at the server even though there is an error on the client side
    requiredfieldvalidator. I would appreciate any help.

    Page_Load
    Button1.Attributes.Add("onclick", "return confirm('" & "Do you want to
    submit?" & "');")

    Thanks,
    Michael Garcia
     
    , Jun 20, 2006
    #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. =?Utf-8?B?VGFydW4gVXBhZGh5YXlh?=

    Problem showing confirm dialog on button webcontrol's onclick even

    =?Utf-8?B?VGFydW4gVXBhZGh5YXlh?=, Jun 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,582
    Peter Blum
    Jun 2, 2005
  2. Bogdan
    Replies:
    3
    Views:
    795
    Piglet
    Aug 1, 2008
  3. Alan

    OnClick="return confirm" not work

    Alan, May 2, 2005, in forum: ASP General
    Replies:
    1
    Views:
    393
    Evertjan.
    May 2, 2005
  4. @sh
    Replies:
    4
    Views:
    112
  5. Replies:
    2
    Views:
    278
Loading...

Share This Page