在代码中创建确认警报 [英] creating confirm alert in the code

查看:66
本文介绍了在代码中创建确认警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiii全部
我可以在C#代码中创建确认弹出窗口吗,因为我尝试了javascript确认,但是在其答案中我想从代码中获取ID,因此在javascript中是不可能的.
所以,我可以在代码中这样做吗? 感谢

hiii all
can i create confirm popup in c# code that beacuse i tried javascript confirm but in its answer i want to take an id from the code and it is impoosible in javascript.
so, can i do that in the code????
thanks

推荐答案

请参阅此 LINK [ ^ ].可能会有所帮助.

您也可以使用"RegisterStartupScript".参见此处 JavaScript-Alert-from-ASPNET-code-behind [ ^ ]
See this LINK[^]. Might be helpful.

You can use "RegisterStartupScript" also. See here JavaScript-Alert-from-ASPNET-code-behind[^]


您可以使用div.您可以根据需要显示/隐藏div.

另外,请查看此处找到的第一个解决方案: http://www.codeproject.com/Answers/166205/alert-in-the-run-time-of-an-image.aspx#answer1
You can use a div. You can than show/hide the div when required.

Also take a look at the first solution found here: http://www.codeproject.com/Answers/166205/alert-in-the-run-time-of-an-image.aspx#answer1


这篇关于在代码中创建确认警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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