asp.net中的消息框焦点问题C# [英] Message Box Focus Problem in asp.net C#

查看:75
本文介绍了asp.net中的消息框焦点问题C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了

system.windows.forms;在asp.net中引用

但是有时焦点不会出现在消息框上

它只停留在我的网页上如何控制

I have added
system.windows.forms; reference in asp.net
but some times focus is not coming on Message box
it is staying on my web page only how to control that

MessageBox.Show("This is msgbox", "msg", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);



DefaultDesktopOnly表示当前正在工作的桌面

并且有人建议在xp上显示IIS设置显示msgbox但在win7中它没有显示


DefaultDesktopOnly indicate current working desktop
and can some one suggest IIS setting on xp its showing msgbox but in win7 its not showing

推荐答案

如果您使用Windows表单消息框那么那将会发生使用javascript'的警告框



if u r using windows forms messagebox then thats going to happen use javascript''s alertbox

Response.Write(@"<script language='javascript'>alert('this is messagebox .');</script>");







确定没有这样的解决方案你应该查看这个

http://jqueryui.com/dialog/#modal-confirmation [ ^ ]


这篇关于asp.net中的消息框焦点问题C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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