Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I add modal poup control to display the vallidation summary on button click.The popup is comming correctly and the validations also checking correctly.

The problem is while all the vallidations are correct the popup is showing.How to avoid the popup coming if all validation is correct.

Popup div
XML
<asp:Panel ID="errorsPanel" runat="server" Style="border-style: solid;border-width: medium; border-color: #FF7F50" Width="250px" Height="250px" BackColor="White">
                    <div style="text-align: left">
                        <asp:ValidationSummary ID="valSummary" runat="server" Font-Bold="true" DisplayMode="List" ShowSummary="true" ValidationGroup="vlICTCTransaction" />
                        <div style="text-align: right">
                            <asp:Button ID="okBtn" runat="server" Text="Ok" />
                        </div>
                    </div>
                    </asp:Panel>
                    <ajaxToolkit:modalpopupextender ID="modalPopupEx" runat="server" PopupControlID="errorsPanel" TargetControlID="btnProcess" CancelControlID="okBtn" BackgroundCssClass="modalBackground">
                    </ajaxToolkit:modalpopupextender>



In the control validationj i gave Display="None" and EnableClientScript="true",because I need the validation in client side.

Please help

Regards
Sreejith
Posted
Updated 29-May-15 22:34pm
v2

1 solution

Hello Sreejith,

Where you call Model popup?
in button click or something else

Note: For Validation Summary no need to use any popups it will automatically populate if we have any validations alert
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900