I have even tried deleting the schema files from C:\Documents and Settings\xxx\Application Data\Microsoft\VisualStudio\10.0\ReflectedSchemas location.
Please help me in successfully implementing the Combobox control. Thanks!
Edited:
As a different approach, I created a new website and installed the latest version of AjaxControlToolkit using NuGet. I rebuilt the solution. I still could not see the Ajax controls in intellisense. Is there anything else that needs to be done to implement it? Please help!!
Seems like it has been working all along.
I still get the green line under the control definition saying "Unrecognized tag prefix or device filter".
But if I go ahead and run the page anyway, it runs ok.
KhD
Member
97 Points
42 Posts
Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 27, 2012 02:30 AM|LINK
I am trying my hands on Visual Studio 2010 (Asp.Net 4.0) for the first time. I want to use Ajax controls, mainly ComboBox control.
I followed the step-by-step procedure mentioned in this link to download and install AjavControlToolkit.
I also followed this link for steps to add ComboBox to my webpage.
But no matter what I do, there is a green line under the control and I'm getting the error "Unrecognized tag prefix or device filter 'ajax'".
My web.config file looks like this:
The aspx page looks like this:
I have even tried deleting the schema files from C:\Documents and Settings\xxx\Application Data\Microsoft\VisualStudio\10.0\ReflectedSchemas location.
Please help me in successfully implementing the Combobox control. Thanks!
Edited:
As a different approach, I created a new website and installed the latest version of AjaxControlToolkit using NuGet. I rebuilt the solution. I still could not see the Ajax controls in intellisense. Is there anything else that needs to be done to implement it? Please help!!
</div>Usha82
Member
710 Points
129 Posts
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 27, 2012 03:16 AM|LINK
Just to confirm did u add reference to dll file? Try registering the control in page instead of doing it in Web. config.
KhD
Member
97 Points
42 Posts
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 28, 2012 02:07 AM|LINK
I have already tried that. It is not working.
chetan.sarod...
All-Star
65789 Points
11153 Posts
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 28, 2012 02:14 AM|LINK
Hi, Please refer this
http://blogs.msdn.com/b/mikhailarkhipov/archive/2005/04/21/410557.aspx
http://forums.asp.net/p/1590771/4030810.aspx
http://forums.asp.net/t/1137121.aspx/1
http://forums.asp.net/t/1304637.aspx/1
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
KhD
Member
97 Points
42 Posts
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 28, 2012 03:44 AM|LINK
Thank you for the links Chetan. I've seen them all and tried every solution.
I have tried:
--adding reference to the dll manually.
--registering the assembly on the page, and/or in web.config
--adding controls in toolbox and dragging and dropping to the page (which automatically registers the dll)
--deleting schema files and restarting VS2010.
--downloading AjaxControlToolkit using NuGet.
Nothing seems to be working. I simply cannot get the controls to work.
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 28, 2012 06:55 AM|LINK
Hi,
Please send the sample project to me. And I will check that. My email: support-sotian@live.com
Feedback to us
Develop and promote your apps in Windows Store
KhD
Member
97 Points
42 Posts
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 28, 2012 08:32 AM|LINK
Hi Song-Tian,
I have emailed the sample project and details to you. Thank you so much for taking out time for this.
Looking forward to your reply.
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 28, 2012 09:16 AM|LINK
Hi,
I have change the project and send to you. Please check.
Feedback to us
Develop and promote your apps in Windows Store
KhD
Member
97 Points
42 Posts
Re: Unrecognized tag prefix or device filter (Visual Studio 2010)
Feb 29, 2012 03:42 AM|LINK
I am pasting the code for other's reference:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %> <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <ajaxToolkit:ToolkitScriptManager runat="server"> </ajaxToolkit:ToolkitScriptManager> <cc1:Editor ID="Editor1" runat="server" /> <br /> <br /> <ajaxToolkit:ComboBox ID="ComboBox1" runat="server" AutoCompleteMode="SuggestAppend"> <asp:ListItem>xxxx</asp:ListItem> <asp:ListItem>cvvv</asp:ListItem> <asp:ListItem>bbnbn</asp:ListItem> <asp:ListItem>mmn,m,,</asp:ListItem> </ajaxToolkit:ComboBox> </asp:Content>Web.config part is:
Seems like it has been working all along.
I still get the green line under the control definition saying "Unrecognized tag prefix or device filter".
But if I go ahead and run the page anyway, it runs ok.