如何在不关闭模式弹出窗口的情况下打开消息框 [英] How To Open Message Box Without Closing Modal Popup

查看:90
本文介绍了如何在不关闭模式弹出窗口的情况下打开消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,使用ajax模态弹出式扩展程序打开登录窗口,其中的用户名,密码&文本框一个登录按钮,
因此,当任何用户输入错误的用户名或密码时,都会打开消息框增加用户名或密码",但是在这种情况下,我不想关闭登录窗口&这些消息框已打开.
目前一切正常,但是当这些消息框打开时,模式弹出窗口将关闭.
Thanx.

In my project,open the signin window using ajax modal popup extender in which textboxes for username,password & one signin button,
so when any user enter there wrong username or password then message box is open "Incrrect username or password",but in these case i want to do not close the signin window & these message box is open.
at currently all are work well but when these message box is open the modal popup is close.
Thanx.

推荐答案

如果验证检查是在客户端进行的,则弹出窗口将不会关闭.
如果要在服务器端进行验证,则它将关闭.
在服务器端验证后,尝试再次重新打开弹出窗口.

您可以使用PageMethod Concepts通过客户端调用实现相同的服务器端验证.
If the validation check is happening in client side, then the popup window willnot close.
If you are do the validation in server side then it closes.
Try to re-open the popup again , after your server side validation.

You can achive the same server side validation via Client side call using PageMethod Concepts.


这篇关于如何在不关闭模式弹出窗口的情况下打开消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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