从页面后面的代码中,模态是/否弹出控件中的按钮 [英] Modal yes/no popup on an button in the control from the page codebehind

查看:62
本文介绍了从页面后面的代码中,模态是/否弹出控件中的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我处于一种独特的情况,其中搜索按钮位于控件中,但是网格和网格的数据绑定不是控件的一部分.

但是,如果网格为空,我想在seach按钮上显示弹出窗口,并且需要提示用户选择从其他数据库中获取数据.

我将属性添加到了网页后面代码中的按钮中,但是弹出窗口的确显示在同一单击上.下次单击该按钮时,它就会显示.

请帮助.

感谢

I am in a unique situation where the search button is in a control but the grid and the databinding of the grid is not part of the control.

But I want to show the popup on the seach button if the grid is empty and need to prompt the user to choose to get data from a different database.

I added the attribute to the button in the code behind of the web page but the popup does show on the same click. On clicking the button next time it shows up.

Pls. help.

Thanks

推荐答案

首先,正确标记您的问题.您在哪里说的是ASP.NET?我们要猜吗?其次,您的网站不在乎客户端上的控件,它只是一堆HTML.因此,没有理由您不能使用委托或公开的属性来设置元素之间的通信,以便所有人都知道如何渲染以在客户端页面上进行交互.
First of all, tag your questions properly. Where did you say it was ASP.NET ? We have to guess ? Second, your site does not care about controls on the client side, it''s all one blob of HTML. So, there''s no reason you can''t use delegates or exposed properties to set up communication between elements so that everything knows how to render to interact in your page on the client side.


这篇关于从页面后面的代码中,模态是/否弹出控件中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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