如何在asp.net中获取消息框结果 [英] how to get messagebox result in asp.net

查看:73
本文介绍了如何在asp.net中获取消息框结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码在asp.net中显示确认消息框并且它运行良好。

但现在我想知道如何获得该确认消息框的结果

(要知道用户是否点击了是或否按钮,以便做出决定)



当前代码为:





string Message =这是您的确认消息!;

ClientScript.RegisterStartupScript



this.GetType(),confirm,confirm('+ Message +');,true

);

I have the following code to show a confirmation messagebox in asp.net and it's work well.
but now I want to know how can I get the result of that confirmation message box
(To know wethere yes or no button is clicked by the user ,to make decision upon it)

current code is:


string Message = "This is your Confirm Message !";
ClientScript.RegisterStartupScript
(
this.GetType(), "confirm", "confirm('" + Message + "');", true
);

推荐答案

您可以在下一篇文章中看到:一个简单的ASP.NET服务器控件:Message Box&确认框 [ ^ ]
You can see in the next article: A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]


尝试此链接



ASP.Net Server Side Yes No Confirmation Box using JavaScript



谢谢
Try from this link

ASP.Net Server Side Yes No Confirmation Box using JavaScript

thanks


这篇关于如何在asp.net中获取消息框结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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