模态弹出式验证摘要 [英] Modal Popup Vallidation Summary

查看:134
本文介绍了模态弹出式验证摘要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我添加了模态Poup控件以在单击按钮时显示vallidation摘要.弹出窗口正确显示,验证也正确检查.

问题是当所有验证码都正确时,弹出窗口正在显示.如果所有验证均正确,如何避免弹出窗口出现.

弹出div

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

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




在控件验证中,我给出了Display ="None"和EnableClientScript ="true",因为我需要在客户端进行验证.

请帮忙

问候
Sreejith




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

Please help

Regards
Sreejith

推荐答案

你好Sreejith,

在哪里调用模型弹出窗口?
在按钮中点击或其他

注意:对于验证摘要",无需使用任何弹出窗口,如果我们有任何验证警报,它将自动填充
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


这篇关于模态弹出式验证摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆