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" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
Sanjeeb LenkaPosted Jul 29, 2013, 10:23 AM
here i am providing the steps to resolve this error.
step-1
1st add the reference of ajaxcontroltoolkit.dll to your webapplication or website.
step-2
add this directive tag after page directive
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
step-3
add this tag after your form tag
now your page is ready to use ajaxcontroltoolkit controls
i modified your code. 1st follow these steps then check this code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
for autocomplte you can check this example
http://www.aspsnippets.com/Articles/ASP.Net-AJAX-Control-Toolkit-AutoCompleteExtender-without-using-Web-Services.aspx
Riyaz AkhtarPosted Jul 29, 2013, 10:08 AM
Posted Jul 29, 2013, 10:07 AM
Add the above statement in your page after <%@Page ...%> line.