使用vb.net代码的asp.net中的消息框 [英] Message box in asp.net, using vb.net code

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

问题描述


当我在asp.net Web窗体中使用msgbox(显示我的消息")显示消息框时,它的确显示了消息框,但处于最小化状态.
如何在Winforms中正常显示它?

谢谢

Hi,
When I display message box using msgbox ("Show my message") in asp.net webforms, it does show it but in minimized state.
How to display it normally as we get it in winforms?

Thanks

推荐答案

您不能.而且你不应该尝试.

在服务器上执行的任何MessageBox代码都将显示在服务器上,而不是客户端上.顺带一提,这可能会惹恼您的Web托管管理员.

如果要向客户端上的用户显示消息,则应改用Javascript Alert.
You can''t. And you shouldn''t try.

Any MessageBox code executed on the server will be displayed on the server, not the client. And incidentally will probably annoy your web hosting administrator.

If you want to show a message to the user on the client then you should use the Javascript Alert instead.


这篇关于使用vb.net代码的asp.net中的消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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