等效于Webform asp .net项目中的MessageBox [英] equivalent of MessageBox in the webform asp .net project
本文介绍了等效于Webform asp .net项目中的MessageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找可以在asp .net项目中使用的MessageBox的等效项.
如果您加入asp控件,可以举个例子向我建议.
I look for a equivalent of MessageBox that can be used in asp .net project.
if you join the asp control you suggested me with an example it would be welcome.
推荐答案
我建议您使用jQuery,特别是使用警报功能.这是在屏幕上弹出消息框的简单方法.这是一个展示如何使用它的网站:
http://docs.jquery.com/Tutorials:How_jQuery_Works [
I would recommend using jQuery and specifically the alert functionality. That is a simple way to pop up a message box on the screen. Here is a site that shows how to use it:
http://docs.jquery.com/Tutorials:How_jQuery_Works[^]
The code that you are looking for looks like this:
alert("Thanks for visiting!");
如果绝对必须有一个ASP.NET方法来处理消息框,则可以在此处查看示例和说明:
一个简单的ASP.NET服务器控件:消息框&确认框 [ ^ ]
If you absolutely must have a ASP.NET method of doing the message box, you could look at the example and explanation here:
A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]
这是一个消息框,可以类似winforms的方式使用,并且可以在webforms中使用.
用于ASP.NET网站的类似于MessageBox的Windows窗体 [ ^ ]
This is the messagebox which can be used in similar manner like winforms and works in webforms.
A Windows Form like MessageBox for ASP.NET Website[^]
这篇关于等效于Webform asp .net项目中的MessageBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文