如何在Asp.Net2.0的客户端脚本中的模式对话框中添加按钮 [英] How to add a button in the modal dialog box in client side scripting in Asp.Net2.0

查看:43
本文介绍了如何在Asp.Net2.0的客户端脚本中的模式对话框中添加按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决这个问题.当我单击asp:datagrid列时,它将打开警报模式对话框.在那个框中,我需要添加一个新按钮.在Advance中致谢

Hi, please help me with this problem. When i click the asp:datagrid column it opens the alert modal dialog box. In that box i need to add a new button. Thanks in Advance

推荐答案

orc_orc_orc答案是正确的,这是简单的javascript示例

http://www.javascriptkit.com/javatutors/alert2.shtml [
orc_orc_orc answer is right, here is straight javascript example

http://www.javascriptkit.com/javatutors/alert2.shtml[^]


嗯,有三个使用Javascript的对话框提供这些是; alert()显示一条消息和一个OK按钮,confirm()提供一条消息以及OK和Cancel按钮,如果按OK则返回true,如果按cancel则返回false,最后是提供文本输入框的hint()和一个确定按钮,并返回输入的文本.对于您来说,我认为您需要创建自己的自定义对话框.
好吧,您无法构建一个实际的对话框,因为这些对话框是由浏览器创建的(这就是为什么它们看起来不同,取决于您所运行的浏览器的原因)的原因.因此,您可以做的是在网页中构建一些内容,以达到相同的结果.

该网页可帮助您创建所需的模式对话框;

http://download.oracle.com/javase/tutorial/uiswing/components/dialog. html#button [ ^ ]
Well there are three dialog boxes that Javascript provides these are; alert() which displays a message and an OK button, confirm() which provides a message along with OK and cancel buttons and returns true if OK is pressed and false if cancel is pressed, and finally prompt() which provides a text input box and an OK button and returns the text that is entered. For yours I think you need to create your own custom dialog box.
Well you cant build an actual dialog box since those are created by the browser (which is why they look different depending on which browser you are running). So what you can do is to build something into your web page that achieves the same result.

This web page help you create a desired modal dialog box;

http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html#button[^]


感谢您的回复.但是您能帮我在Asp.Net 2.0中做到吗.我认为这是基于Java的.
Thanks for your reply. But can you help me to do in Asp.Net 2.0. I think this is based on java.


这篇关于如何在Asp.Net2.0的客户端脚本中的模式对话框中添加按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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