<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
AutoCompleteExtender1.ContextKey = "ace1";
}
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count, string contextKey)
{
string[] result = new string[6];
for (int i = 0; i < 6; i++)
{
result[i] = prefixText + i.ToString();
}
return result;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" />
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender MinimumPrefixLength="0" ID="AutoCompleteExtender1"
ServiceMethod="GetCompletionList" runat="server" TargetControlID="TextBox1">
</ajaxToolkit:AutoCompleteExtender>
</div>
</form>
</body>
</html>
You can certainly have a reference from it, like
MinimumPrefixLength="0"
Source : ASP .NET Forum[^]