在HTML页面中显示弹出窗口 [英] Showing the popup in HTML page

查看:1109
本文介绍了在HTML页面中显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的项目中有一项任务。在我的HTML页面中,我有一个div,其中包含一些控件和div及其控件是第一次禁用。当选择某个值的下拉列表时,我们需要启用控件,然后在单击某个ADD按钮后,div应该显示为页面中心的弹出窗口弹出窗口。在保存数据之后的下方应该只在HTML格式的gridview中显示。



这里我不应该使用服务器控件。这可能吗?



请帮我一个例子



谢谢

Hi,

I have a task in my project.In this in my HTML page I have a div which contains some controls and the div and its controls are disabled first time.When a dropdown is choosen for some value we need to enable the controls and after clicking on some ADD button that div should be shown as the popup in the centre of the page as popup.And below that after saving the data that should be shown in the gridview in HTML only.

Here I should not use server controls .Is this possible?

Please help me with an example

Thank You

推荐答案

是的,这是可能的。



您必须使用 jQuery Dialog [ ^ ]。



如果您查看该页面中的来源,它只是...

Yes, this is possible.

You have to use jQuery Dialog[^].

If you view the source in that page, it is just...
<script>


function (){


#dialog)。dialog();
});
< / script >
( "#dialog" ).dialog(); }); </script>



让我在这里解释一下代码。

  • #dialog 是我们想要显示为Dialog的Dialog的ID。因此,您可以将多个控件放入其中。
  • dialog()是一个有助于将其显示为弹出在同一页面上。

  • Let me explain you the code here.

    • #dialog is ID of the Dialog which we want to show as a Dialog. So, you can put as many as controls you want to put it inside it.
    • dialog() is a function which helps to show it as an popup on the same page.

    • 这篇关于在HTML页面中显示弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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