如何使用C#在ASP.NET中开发自动完成文本框的代码 [英] how to develope code for autocomplete textbox in asp.net using c#

查看:108
本文介绍了如何使用C#在ASP.NET中开发自动完成文本框的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在这里,我想要用于从数据库搜索数据的代码,我已经使用了一个文本框和一个按钮.在此,我希望当我们搜索字母时文本框应该是自动完成文本框,即``C''必须在该自动完成文本框中显示以``C''命名的类别.

因此,建议我向我的代码提供帮助的有价值的代码.




感谢!

Srikanth.J

Hi All,

Here i want the code for searching the data from database,I have taken one textbox and a button. In this,I want the textbox should be autocomplete textbox when we search for alphabet i.e, ''C'' the categories named with ''C'' must be shown in that autocomplete textbox.

So please sugguest me the valuable code which gets helpful to my code.




Thank''s Regards

Srikanth.J

推荐答案

您可以在此处找到详细的代码示例:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.autocompletetype.aspx [
You can find detailed code samples here:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.aspx[^],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.autocompletetype.aspx[^].

These are standard MSDN help pages!

—SA


这篇关于如何使用C#在ASP.NET中开发自动完成文本框的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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