0

I add ext.net to my existing project with Nugget but now I have this error in

    Error   193 'Label' is ambiguous, imported from the namespaces or types
 'System.Web.UI.WebControls, Ext.Net'.  

i don't want to importSystem.Web.UI.WebControls in all my page. is there another solution?

2 Answers 2

0

It looks like you have a second class named Label. You either have to refer to that other class with its fully qualified name, or use System.Web.UI.WebControls.Label to refer to the second Label type.. If it's your own class you can consider renaming it to something other than Label.

2
  • thanks for your answer. i Have more than 1000 like this in my project i can't change all of theme!
    – Mahdi_Nine
    Nov 19, 2014 at 6:06
  • In Visual Studio you can attempt a global search and replace
    – TGH
    Nov 19, 2014 at 6:08
0

I found the solution, i remove <add namespace="Ext.Net" /> from web.config and add: using Ext.Net to every page that i need. so i didn't rename anything in my project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.