ModalPopupExtender and Required Field Validator

Discussion in 'ASP .Net' started by Mel, Aug 20, 2010.

  1. Mel

    Mel Guest

    Hi, I have a ModalPopupExtender that displays a panel when a button on
    the form is clicked. How do I get a required field validator to work
    when the user clicks the OK button on the panel? For example, city is
    required. I have set the city textbox, the city required field
    validator and the OK button in a Validation Group separate from any of
    the other controls on the form, however, the city validator is
    preventing my form from working as expected (when the panel is not
    even visible), it's like it's validating all the time.

    (Using VS 2008, AJAX, VB)
     
    Mel, Aug 20, 2010
    #1
    1. Advertisements

  2. Mel

    Mel Guest

    On Aug 20, 9:06 am, Mel <> wrote:
    > Hi, I have a ModalPopupExtender that displays a panel when a button on
    > the form is clicked.  How do I get a required field validator to work
    > when the user clicks the OK button on the panel?  For example, city is
    > required.  I have set the city textbox, the city required field
    > validator and the OK button in a Validation Group separate from any of
    > the other controls on the form, however, the city validator is
    > preventing my form from working as expected (when the panel is not
    > even visible), it's like it's validating all the time.
    >
    > (Using VS 2008, AJAX, VB)


    Am I using the wrong AJAX toolkit? I am running .net framework 3.5.
    My ajaxcontroltoolkit.dll version says 3.0.31106.0 dated 11/17/2009.
     
    Mel, Aug 20, 2010
    #2
    1. Advertisements

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. Andy Eshtry
    Replies:
    1
    Views:
    1,061
  2. Alfonso Alvarez
    Replies:
    0
    Views:
    732
    Alfonso Alvarez
    May 13, 2004
  3. David Hearn
    Replies:
    2
    Views:
    3,418
    David Hearn
    Apr 18, 2005
  4. Andy Eshtry

    required field validator - prevent number and allow space

    Andy Eshtry, Feb 1, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    251
  5. Mauricio Bastos

    Simple Required Field and Range Validator Problem

    Mauricio Bastos, Jun 17, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    379
    Mauricio Bastos
    Jun 17, 2004
  6. Timothy Elvidge

    required field validator and other browsers

    Timothy Elvidge, Jul 11, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    176
    Timothy Elvidge
    Jul 11, 2004
  7. Timothy Elvidge

    required field validator and browsers other than IE

    Timothy Elvidge, Jul 14, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    195
    Teemu Keiski
    Jul 15, 2004
  8. jr
    Replies:
    3
    Views:
    696
Loading...