ASP.NET中的对话框 [英] dialog box in ASP.NET

查看:78
本文介绍了ASP.NET中的对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过
在ASP.NET中显示一个对话框

I am trying to display a dialog box in ASP.NET by

MessageBox.Show("string1""string2");



但它不起作用.尽管我可以在ADO.NET中工作,但是为什么我不能在ASP.NET中工作.

请指导可能的解决方案.谢谢朋友.



but it is not working. Though I can work in ADO.NET, why am I not able to do so in ASP.NET.

Please guide with the possible solution. Thanks friends.

推荐答案

为什么我无法在asp .net
中做到这一点? 因为它们在ASP.NET中不可用. MessageBox在Winforms中可用.

可能的解决方案是使用Javascript显示消息框.这个站点中有customcontrols,它包装了此javascript并将其作为服务器控件.您可以根据需要选择这些内容.
why am i not able to do so in asp .net
Because they are not available in ASP.NET. MessageBox is available in Winforms.

Possible solution is to use Javascript to show the messagebox. There are customcontrols in this very site that wrap around this javascript and make it as a server control. You can pick those if needed.


是否此CP文章 [ ^ ]有帮助吗?


这篇关于ASP.NET中的对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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