如何在asp.net中创建自定义文本框和下拉列表控件(自动完成) [英] How ton create custom text box and drop down list control in asp.net (Autocomplete )

查看:101
本文介绍了如何在asp.net中创建自定义文本框和下拉列表控件(自动完成)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

www.flipkart.com主页有一个搜索文本框和一个下拉列表控件..........如何在asp.net中显示这种类型的控件(显示自动完成面板与产品,类别和品牌明智搜索)。 ?

帮助请任何人



必须访问该链接以便更好地理解...

www.flipkart.com homepage has a search text box and a dropdownlist control..........how to impliment this type of control in asp.net (Show Autocomplete Panel with Product,category and Brand wise search ). ?
help please anyone

must visit the link for better understanding...

推荐答案

使用这种类型的查询自动完成Extender!



例子



use auto complete Extender with this type of query!..

Example

select category from tbl_category where " +
                "category like @SearchText + '%' union select cmpny_name from tbl_companydetails where cmpny_name like @SearchText + '%'





尝试使用您的表结构!...



try like this with your table structure!...


CodeProject上有几个例子



例如构建ASP.NET自定义Web控件:a一个文本框和验证器 [ ^ ]和 ASP.NET中的多选下拉列表 [ ^ ]

使用页面顶部的搜索框查找更多内容。

There are several examples here on CodeProject

e.g. Building an ASP.NET custom web control: a textbox and validator in one[^] and Multi select Dropdown list in ASP.NET[^]
Use the search box at the top of the page to find more.
引用:

必须访问该链接以便更好地理解...

must visit the link for better understanding...



这使得这篇文章看起来像垃圾邮件。避免使用这样的短语。更好的方法是发布您已尝试过的代码并解释您遇到的问题。


This makes this post look like spam. Avoid using phrases like this. Much better is to post the code you have already tried and explain where you are stuck.


这篇关于如何在asp.net中创建自定义文本框和下拉列表控件(自动完成)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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