模式弹出搜索窗口,以取代下拉控制ASP.NET [英] Modal popup search window to replace dropdown control ASP.NET

查看:60
本文介绍了模式弹出搜索窗口,以取代下拉控制ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找上的ASP.NET 3.5应用程序来查找值的字段的顶部弹出一个模式搜索窗口的最简单的方法。我已经得到了用户添加课程屏;用户需要能够通过在弹出寻找导师选择讲师。

I'm looking for the simplest way of popping a modal search window on top of an ASP.NET 3.5 application to look up values for a field. I've got a screen for users to add courses; users need to be able to choose an instructor by searching for instructors in a popup.

所以 - 弹出窗口将有一个文本框和结果的gridview的;点击选择的结果将按钮填充调用窗体上的教练场。

So - the popup would have a textbox and a gridview with results; clicking the "choose" button in a result would populate the instructor field on the calling form.

什么是实现这一目标的最简单的方法?

What's the simplest way to achieve this?

推荐答案

尝试使用jQuery一个用户控件里面的东西像的 yensdesign

Try using jQuery inside a UserControl with something like the tutorial from yensdesign.

我这种方法创建的用户控件提供的用户设置其preferences站点的选项。我用这种方法发现这是比较容易控制的模态窗口,比调用一个新的弹出浏览器窗口调用窗口之间的交互。你也不必担心弹出窗口拦截器的方式获得。

The UserControl I created with this approach provided the user the option to set their preferences for the site. I found with this approach it was easier to control the interaction between the modal window and the calling window than calling a new popup browser window. One also doesn't have to worry about popup blockers getting in the way.

这是有益的或者是你寻找更多的细节?

Is this helpful or are you looking for more detail?

这篇关于模式弹出搜索窗口,以取代下拉控制ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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