如何使用自动完成扩展器的结果填充gridview [英] How to fill gridview with result from autocompleteextender

查看:77
本文介绍了如何使用自动完成扩展器的结果填充gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

当我在网页的文本框中键入内容时,我需要用可能来自数据库的结果填充gridview.为此,我使用了ajaxcontroltoolkit和webservice.在webservice中,当我在文本框中键入内容时会调用一个方法,该方法会返回结果,该结果显示为文本框控件下方的弹出窗口. Webmethod返回一个列表.是否可以使用与弹出窗口中相同的数据填充同一页面中的gridview(我们在搜索朋友时可以在facebook中看到这种示例).我可以使用此字符串数组将网页中的网格绑定吗?我不能使用任何回发事件来填充gridview.它必须在弹出时发生.

谢谢
问候
Stanly

Dear sir,

I need to populate a gridview with posssible result coming from database, when I''m typing something in a textbox in my web page. For this purpose I''m using ajaxcontroltoolkit and webservice. In webservice, a method is called when I type in the textbox and it returns result, which appears as a pop up just below the textbox control. Webmethod returns an List. Is it possible to populate a gridview in the same page with the same data as in the pop up(We can see this kind of example in facebook while searching for friends). Can I bind the grid in my web page with this array of string? I can''t use any post back event to populate the gridview. It has to happen as it happens for pop up.

Thanks
Regards
Stanly

推荐答案

尝试以下链接

初学者指南-使用Ajax Control Toolkit实现自动建议功能 [ ^ ]

尝试在gridview中实现显示结果..

谢谢
Try the following link

A Beginners Guide - Implementing Auto Suggest Functionality using Ajax Control Toolkit[^]

Try to implement showing result in gridview..

Thanks


我已经使用AJAX创建了一个类似的自动完成插件.请看看它是否可以为您提供帮助.
facebook类型搜索框
I''ve created a similar autocomplete plugin using AJAX. Please have a look if it can help you.
facebook type search box


这篇关于如何使用自动完成扩展器的结果填充gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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