Introduction: In
this post I will try to explain how we can use the AutoCompleteExtender Ajax
Control in Asp.net.
Description:
In the last article I have explained How to install Ajax control Toolkit in Visual Studio , How to upload multiple files using AjaxFileUpload and save path to Database in asp.net , How to use Ajax UpdateProgress Control in Asp.net.
I have a table PRODUCTS.
Here PRODUCT_ID is primary key and
auto increment.
PRODUCT_ID
|
int
|
PRODUCT_NAME
|
varchar(50)
|
Add a webform to
project. Drag and drop the AutoCompleteExtender
, ScriptManager control
from Toolbox as mention below:
<table border="1px solid">
<tr><b>AutoCompleteExtender
Example</b></tr>
<tr><td>Product Name:</td><td><asp:TextBox ID="txtproduct"
runat="server"></asp:TextBox></td></tr></table>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server"
TargetControlID="txtproduct"
ServiceMethod="GETPRODUCT"
MinimumPrefixLength="1"
EnableCaching="false"
CompletionSetCount="10"
CompletionInterval="100"></asp:AutoCompleteExtender>