如何在Code后面的文件中获得true或false返回值 [英] How to get true or false return value in Code behind file

查看:84
本文介绍了如何在Code后面的文件中获得true或false返回值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ScriptManager.RegisterStartupScript(this,GetType(),showalert,确认('订单号已经存在。你想继续吗?');,true);



以上代码编写后面的代码文件... showalert是一个函数,在aspx页面的头部调用..现在我的问题是如何从上面的代码中获取true或false值...客户选择....

ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "confirm('Order No already Exist.Do You Want to Proceed ?');", true);

Above Code Is written Code behind File...showalert is a Function which is call in head portion of aspx page..now the my question is how to get true or false value from the above code...which is selected by Client....

推荐答案

参考以下链接: -

http://stackoverflow.com/questions/19111344/getting-confirm-value-in-code-behind [ ^ ]

http://forums.asp.net/t/1393756.aspx [ ^ ]

http://stackoverflow.com/questions/11643515/how-to-get -the-response-from-confirm-in-the-code-behind [ ^ ]
refer below links:-
http://stackoverflow.com/questions/19111344/getting-confirm-value-in-code-behind[^]
http://forums.asp.net/t/1393756.aspx[^]
http://stackoverflow.com/questions/11643515/how-to-get-the-response-from-confirm-box-in-the-code-behind[^]


参考:

http://aspsnippets.com /Articles/Server-Side-Code-Behind-Yes-No-Confirmation-Message-Box-in-ASPNet.aspx [ ^ ]

在ASP.NET中使用自定义消息框 [ ^ ]
Refer:
http://aspsnippets.com/Articles/Server-Side-Code-Behind-Yes-No-Confirmation-Message-Box-in-ASPNet.aspx[^]
Using a Customized Messagebox in ASP.NET[^]


这篇关于如何在Code后面的文件中获得true或false返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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