如何使用C#语言在asp.net中显示消息? [英] how to display messages in asp.net using C# language?
本文介绍了如何使用C#语言在asp.net中显示消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用像MessageBox.show(");这样的C#语言在asp.net中显示消息.在Windows应用程序中?
how to display messages in asp.net using C# language like MessageBox.show(""); in windows applications?
推荐答案
有JavaScript函数alert
,但这很丑陋.请参阅:
http://www.w3schools.com/js/js_popup.asp [ http://archive.plugins.jquery.com/project/modalBox [ http://web.enavu.com/tutorials/top-10-jquery-modal -box-plugins/ [ ^ ],
http://www.jquery4u.com/windows/14-jquery-modal-dialog-boxes / [^ ],
http://coderplus.com/2009/11/jquery-modal-boxes -to-improve-your-ui/ [ http://www.webgurusdesignblog.com/2009/02 /10-best-modal-boxes-for-web-design-projects/ [ http://docs.jquery.com/Tutorials:How_jQuery_Works [ http://docs.jquery.com/Tutorials [ http://docs.jquery.com/Main_Page [
There is the JavaScript functionalert
, but this is pretty ugly. Please see:
http://www.w3schools.com/js/js_popup.asp[^].
The best modal functionality without ugly pop-ups close to the message box is probably the jQuery modal box. Please see:
http://archive.plugins.jquery.com/project/modalBox[^].
There is a number of different alternative implementation of similar modal boxes, such as:
http://web.enavu.com/tutorials/top-10-jquery-modal-box-plugins/[^],
http://www.jquery4u.com/windows/14-jquery-modal-dialog-boxes/[^],
http://coderplus.com/2009/11/jquery-modal-boxes-to-improve-your-ui/[^],
http://www.webgurusdesignblog.com/2009/02/10-best-modal-boxes-for-web-design-projects/[^].
…
If you are not well familiar with jQuery yet, I would advise to learn some jQuery if you want advanced JavaScript UI with good feature and maintainability. You can start here:
http://docs.jquery.com/Tutorials:How_jQuery_Works[^],
http://docs.jquery.com/Tutorials[^],
http://docs.jquery.com/Main_Page[^].
—SA
参考:
一个简单的ASP.NET服务器控件:消息框&确认框 [ ^ ]
ASP.NET中的简单MessageBox功能 [用于ASP.NET网站的类似于MessageBox的Windows窗体 [ ^ ]
在asp.net中确认消息框 [ ASP.NET消息框 [自定义ASP.NET的MessageBox,ConfirmBox和FrameBox控件
用于ASP.NET的消息框控件
可重用的ASP.NET MessageBox用户控件
在 CodeProject 上的搜索结果[ ^ ]和 ^ ]
Refer:
A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]
Simple MessageBox functionality in ASP.NET[^]
A Windows Form like MessageBox for ASP.NET Website[^]
Confirm message box in asp.net[^]
ASP.NET MessageBox[^]
A Customize MessageBox, ConfirmBox and FrameBox Control for ASP.NET
Messagebox Control for ASP.NET
Reusable ASP.NET MessageBox UserControl
Search results on CodeProject[^] and google[^]
这里回答了类似的问题..
http://forums.asp.net/t/1051178.aspx/1 [ ^ ]
http://stackoverflow.com/questions/5825165/javascript-alert- showmessage-from-asp-net-code-behind [ ^ ]
http://stackoverflow.com/questions/9365644/asp- net-how-to-display-javascript-alert-using-c [ http://www.hotscripts.com/forums/windows- net-programming/53355-javascript-alert-message-c.html [
Hi,
Similar issues answered here..
http://forums.asp.net/t/1051178.aspx/1[^]
http://stackoverflow.com/questions/5825165/javascript-alert-showmessage-from-asp-net-code-behind[^]
http://stackoverflow.com/questions/9365644/asp-net-how-to-display-javascript-alert-using-c[^]
http://www.hotscripts.com/forums/windows-net-programming/53355-javascript-alert-message-c.html[^]
Hope this helps...
Regards
Sebastian
这篇关于如何使用C#语言在asp.net中显示消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文