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. Advertising

  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. 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. Andy Eshtry
    Replies:
    1
    Views:
    859
  2. Alfonso Alvarez
    Replies:
    0
    Views:
    602
    Alfonso Alvarez
    May 13, 2004
  3. David Hearn
    Replies:
    2
    Views:
    3,168
    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:
    169
  5. jr
    Replies:
    3
    Views:
    426
Loading...

Share This Page