开发者

AutoComplete from SQL Server DB using C# in ASP.Net

开发者 https://www.devze.com 2023-03-14 19:23 出处:网络
I try AutoComplete dropdown using C# code. Can I do without using AJAX. Or must use AJAX. How could I d开发者_运维百科o?

I try AutoComplete dropdown using C# code. Can I do without using AJAX. Or must use AJAX. How could I d开发者_运维百科o? Can I use like that?

public string[] GetCompletionList(string prefixText, int count, string contextKey) 
{ ... }


you must use Ajax because without it you will reload your page for every key stroke. You can use JQuery plugin called Autocomplete or make your Ajax call.

you can find autocomplete here http://docs.jquery.com/UI/Autocomplete

0

精彩评论

暂无评论...
验证码 换一张
取 消