如何在不关闭模式弹出窗口的情况下打开消息框

问题描述:

在我的项目中,使用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.