3
Reply

Autocomplete textbox from database: big trouble

Divin Mfwamba

Divin Mfwamba

Jul 29 2013 10:04 AM
1.7k
Hello!

Can you tell me how can use a autocomplete textbox from a database. I'm try to do this in my aspx. But I have this message on my run design time:
Error Creating Control-autoComplete1
This control cannot be displayed because its TagPrefix is not registered in this Web Form.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ajaxToolkit:AutoCompleteExtender id="autoComplete1" runat="server" TargetControlID="myTextBox" ServiceMethod="GetCompletionList" ServicePath="AutoComplete.asmx"></ajaxToolkit>
    </div>
    </form>
</body>
</html>


Answers (3)