如何使用visual studio 2015开发ajax搜索框 [英] How do I develop ajax search box using visual studio 2015
问题描述
我正在使用visual studio 2015来开发一个Web应用程序,它将有一个搜索框,因此它会在输入时返回结果(类似于像screener.in这样的网站)。我真的对asp.net的版本感到困惑,因为我使用的是visual studio 2015,大部分结果项目(用谷歌搜索后)都是在早期版本中完成的。我尝试使用ajaxcontroltoolkit但失败了(codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit)
请帮我完成以下代码
谢谢
Ritu
我的尝试:
www.codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit
www.aspdotnet-suresh.com/2011/03/how-to-implement- auto-complete-textbox.html
以上是在以前版本的asp.net中设计的,所以我不知道这应该适用于visual studio 2015
我真的想要一个非常简单的解决方法
Hi,
I am using visual studio 2015 to develop a web application which would be having a search box whereupon it would return results while typing ( something similar to the site like screener.in ) . I am really confused with the versions of asp.net because i am using visual studio 2015 and most of the resultant projects (after googling them) are done in earlier versions. I tried using ajaxcontroltoolkit but failed ( codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit )
Please help me to complete this with the codes
Thank you
Ritu
What I have tried:
www.codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit
www.aspdotnet-suresh.com/2011/03/how-to-implement-auto-complete-textbox.html
The above were designed in previous versions of asp.net, so i don't know weather this should work in visual studio 2015
I really want a very simple way of solving it
推荐答案
我建议你忘记AjaxControlToolkit并看一下使用jQuery UI Autocomplete 。使用起来要简单得多。
jQuery UI自动完成 - 自动完成| jQuery UI [ ^ ]
使用ASP.Net Webforms的jQuery UI自动完成 - 使用ASP.Net中的AJAX PageMethods从数据库实现jQuery AutoComplete TextBox [ ^ ]
I would suggest you forget about the AjaxControlToolkit and look at using the jQuery UI Autocomplete. It is much simpler to work with.
jQuery UI Autocomplete - Autocomplete | jQuery UI[^]
Using the jQuery UI Autocomplete with ASP.Net Webforms - Implement jQuery AutoComplete TextBox from database using AJAX PageMethods in ASP.Net[^]
这篇关于如何使用visual studio 2015开发ajax搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!