在代码隐藏中有一个javascript是/否消息框 [英] Having a javascript yes/no message box in code-behind

查看:65
本文介绍了在代码隐藏中有一个javascript是/否消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的代码中有这个,它可以正常工作:

so I have this in my code-behind and it works fine:

Response.Write(< script language ='javascript'> confirm('您确定要继续吗?');</script>"));

Response.Write("<script language='javascript'>confirm('Are you sure you want to continue?');</script>");

但是我无法取回结果,是或否.我必须在后面的代码中执行此操作,因为那里还有与此相关的其他代码.是否在代码隐藏中获得是或否结果?

but there is no way I can get back the result, the yes or no result. I have to do it in code behind since I have other codes there related to this. Anyway to get the yes or no result in code-behind?

推荐答案

欢迎来到MSDN论坛.

Welcome to the MSDN Forums.

请通过 http://forums.asp.net/重试您的文章,在这里您会找到更多相关专家.

Please retry your post at http://forums.asp.net/ where you'll find more related experts.

此致

Yasser


这篇关于在代码隐藏中有一个javascript是/否消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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