Problem with ajax modal popup extender in Master pages

Posted on 2011-05-11
Last Modified: 2012-05-11
     i'm using master pages in that ajax modal popup extender is using. In modal pop up required field validators are not working... pop up closing automatically.
Question by:gpinfotech
    LVL 10

    Accepted Solution

    On PostBack your ModalPopupExtenders will be dismissed.  You need to "reshow" them in whatever method you are using with the RequiredFieldValidators, e.g. Button_Click, if the page is not valid.

    Example in C#

    protected void Button_Click (object sender, EventArgs e)
       if (!Page.IsValid)
    LVL 14

    Expert Comment

    post ur aspx file for checking validator controls
    LVL 10

    Expert Comment

    I doubt this is an issue with the RFVs.  This is a common issue when using modal popup extenders with validators.  The validators fire, but since a postback occurs the modal popup is dismissed.  In other words, the error message is displayed, you just don't see it.

    Author Comment

    Thanks & Alot
    LVL 19

    Expert Comment

    by:Amandeep Singh Bhullar
    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now