Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have installed "Ajax Control Toolkit" from "NuGet" Manager.
"Ajax Control Toolkit" resides in References.
ASP.NET
<ajaxToolkit:ComboBox ID="ComboBox1"  runat="server"
    DropDownStyle="DropDown"
    AutoCompleteMode="None"
    CaseSensitive="false"
    RenderMode="Inline"
    ItemInsertLocation="Append"
    ListItemHoverCssClass="ComboBoxListItemHover">
      <asp:ListItem>This</asp:ListIem>
      <asp:ListItem>That</asp:ListIem>
      <asp:ListItem>The Other</asp:ListIem>
</ajaxToolkit:ComboBox>


Error Code:
Element 'ComboBox' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
Posted

1 solution

You have to register the toolkit in your webform first, and then you can use the controls and extenders from the collection

How to register ajax control toolkit in web forms[^]
 
Share this answer
 
Comments
Teledextri 13-Nov-14 13:59pm    
That is great putting the Toolkit on the Toolbar. I added the ScriptManager to the Combobox but I still get the same error.
jkirkerx 13-Nov-14 14:14pm    
I don't recall a combobox being one of the of the valid objects in asp.net.
There is a textbox and dropdownlist, but not both combined. It has to do with HTML and input elements.

You really need to delete that object, and drag a valid one from the ajaxcontroltoolkit.

In my opinion, nobody uses the ajaxcontroltoolbox any more, and I think Microsoft sort of dumped it about 2 years ago, and sort of accepted JQuery has it's successor.

I stopped using it back in 2009, and found that it was just evil, and unpredictable when used in the production environment.

Your really better not using asp,net stuff unless you have to, and just using the basic HTML elements, and Javascript and Jquery to manipulate the DOM.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900