来自asp.net和c#的MessageBox [英] MessageBox from asp.net and c#

查看:79
本文介绍了来自asp.net和c#的MessageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。


您能否建议在aspx.cs页面中使用MessageBox功能?


我'我看过网络,很多想法/解决方案实际上并不适合我。


我需要的是一个带有是/否确认的MessageBox,所以我可以据此对用户的回复采取行动。


谢谢。


M:o)

Hi there.

Could you advise on the use of a MessageBox functionality within an aspx.cs page please?

I''ve had a look over the web and a lot of the ideas / solutions don''t actually work for me.

What I need is a MessageBox with Yes / No confirmation, so I can act on a User''s response accordingly.

Thank you.

M :o)

推荐答案

查看使用JavaScript确认例如:
Look into using the JavaScript "confirm" feature.

For example:
展开 | 选择 | Wrap | 行号


谢谢你。


如何在C#中调用该函数?


谢谢。


M :o)
Thank you for that.

How do I call that function from within C# please?

Thank you.

M :o)


你不能用C#代码调用它。

你把它应用到你的按钮或链接上。

例如,你会以某种方式将以下JavaScript添加到页面中(无论是将其复制到页面中,将其添加为外部链接,还是动态生成it)

You don''t call it from your C# code.
You apply it to your buttons or links.

For example, you''d somehow add the following JavaScript to the page (whether it be copying it into the page, adding it as an external link, or dynamically generating it)

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


这篇关于来自asp.net和c#的MessageBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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