本文介绍了如何使用自动完成扩展器的结果填充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

推荐答案



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

09-05 12:27
查看更多