Messagebox即将落后于页面--MVC控制器 [英] Messagebox is coming behind the page - MVC controller
本文介绍了Messagebox即将落后于页面--MVC控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
MVC Controller :
MessageBox is coming behind the page.
I want Message Box to come front please advise.
我尝试过:
What I have tried:
if (MessageBox.Show("Are you sure you want Continue?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
return View("Index");
}
推荐答案
这似乎只是在你的本地机器上进行开发。当您将此代码部署到服务器时,消息框将出现在服务器上,并且没有人可以单击确定。
要求用户确认他们想继续采取行动ASP.NET论坛 [ ^ ]
This only appears to be working because you are developing on your local machine. When you deploy this code to a server the message box will appear on the server and there will be no-one there to click "OK".
Asking the user to confirm that they want to continue with an action | The ASP.NET Forums[^]
这篇关于Messagebox即将落后于页面--MVC控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文