3
Answers

Autocomplete textbox from database: big trouble

Ask a question
Divin Mfwamba

Divin Mfwamba

11y
1.7k
1
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)